summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau
diff options
context:
space:
mode:
authorEmeric Grange <[email protected]>2011-09-12 23:39:27 +0200
committerChristian König <[email protected]>2011-09-14 15:49:15 +0200
commit82e8bf36d8fcd46bcb76ec300875a47c7312f1a1 (patch)
treedeba14c1696dfa0ed4daace96f856c955479d380 /src/gallium/state_trackers/vdpau
parent42fddacabafebd4c9f1ba2f8f94192f8f4f76fce (diff)
g3dvl: Add max_references parameter to vl_create_decoder()
Signed-off-by: Emeric Grange <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau')
-rw-r--r--src/gallium/state_trackers/vdpau/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c
index 2bf782ef220..35011669cf2 100644
--- a/src/gallium/state_trackers/vdpau/decode.c
+++ b/src/gallium/state_trackers/vdpau/decode.c
@@ -69,14 +69,14 @@ vlVdpDecoderCreate(VdpDevice device,
vldecoder->device = dev;
- // TODO: Define max_references. Used mainly for H264
vldecoder->decoder = pipe->create_video_decoder
(
pipe, p_profile,
PIPE_VIDEO_ENTRYPOINT_BITSTREAM,
PIPE_VIDEO_CHROMA_FORMAT_420,
- width, height
+ width, height, max_references
);
+
if (!vldecoder->decoder) {
ret = VDP_STATUS_ERROR;
goto error_decoder;