diff options
author | Johns <johns98@gmx.net> | 2012-12-24 12:59:35 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-12-24 12:59:35 +0100 |
commit | 9b69045a20628883e90ac9e9fab04052b2a5326b (patch) | |
tree | 3ce3794c96f8a083f78e330b4add9ba44112a77c | |
parent | 966ff4229a41cc652980350b33c34699353d4895 (diff) | |
download | vdr-plugin-softhddevice-9b69045a20628883e90ac9e9fab04052b2a5326b.tar.gz vdr-plugin-softhddevice-9b69045a20628883e90ac9e9fab04052b2a5326b.tar.bz2 |
Use 1 surface reserve.
-rw-r--r-- | video.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6777,7 +6777,7 @@ static enum PixelFormat Vdpau_get_format(VdpauDecoder * decoder, profile, video_ctx->width, video_ctx->height, max_refs); decoder->Profile = profile; - decoder->SurfacesNeeded = max_refs + VIDEO_SURFACES_MAX; + decoder->SurfacesNeeded = max_refs + VIDEO_SURFACES_MAX + 1; status = VdpauDecoderCreate(VdpauDevice, profile, video_ctx->width, video_ctx->height, max_refs, &decoder->VideoDecoder); @@ -9491,7 +9491,7 @@ void VideoDrawRenderState(VideoHwDecoder * hw_decoder, status = VdpauDecoderCreate(VdpauDevice, decoder->Profile, decoder->InputWidth, decoder->InputHeight, - decoder->SurfacesNeeded - VIDEO_SURFACES_MAX, + decoder->SurfacesNeeded - VIDEO_SURFACES_MAX - 1, &decoder->VideoDecoder); if (status != VDP_STATUS_OK) { Error(_("video/vdpau: can't create decoder: %s\n"), |