mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Use 1 surface reserve.
This commit is contained in:
parent
966ff4229a
commit
9b69045a20
4
video.c
4
video.c
@ -6777,7 +6777,7 @@ static enum PixelFormat Vdpau_get_format(VdpauDecoder * decoder,
|
|||||||
profile, video_ctx->width, video_ctx->height, max_refs);
|
profile, video_ctx->width, video_ctx->height, max_refs);
|
||||||
|
|
||||||
decoder->Profile = profile;
|
decoder->Profile = profile;
|
||||||
decoder->SurfacesNeeded = max_refs + VIDEO_SURFACES_MAX;
|
decoder->SurfacesNeeded = max_refs + VIDEO_SURFACES_MAX + 1;
|
||||||
status =
|
status =
|
||||||
VdpauDecoderCreate(VdpauDevice, profile, video_ctx->width,
|
VdpauDecoderCreate(VdpauDevice, profile, video_ctx->width,
|
||||||
video_ctx->height, max_refs, &decoder->VideoDecoder);
|
video_ctx->height, max_refs, &decoder->VideoDecoder);
|
||||||
@ -9491,7 +9491,7 @@ void VideoDrawRenderState(VideoHwDecoder * hw_decoder,
|
|||||||
status =
|
status =
|
||||||
VdpauDecoderCreate(VdpauDevice, decoder->Profile,
|
VdpauDecoderCreate(VdpauDevice, decoder->Profile,
|
||||||
decoder->InputWidth, decoder->InputHeight,
|
decoder->InputWidth, decoder->InputHeight,
|
||||||
decoder->SurfacesNeeded - VIDEO_SURFACES_MAX,
|
decoder->SurfacesNeeded - VIDEO_SURFACES_MAX - 1,
|
||||||
&decoder->VideoDecoder);
|
&decoder->VideoDecoder);
|
||||||
if (status != VDP_STATUS_OK) {
|
if (status != VDP_STATUS_OK) {
|
||||||
Error(_("video/vdpau: can't create decoder: %s\n"),
|
Error(_("video/vdpau: can't create decoder: %s\n"),
|
||||||
|
Loading…
Reference in New Issue
Block a user