summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-10 18:26:51 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-10 18:27:40 +0200
commita10b3d30326bb1a8141c8a9c604d4e4c41c73f25 (patch)
tree697d9590014d526c2224ffa073a1701ff8dfc80f /gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
parent893e45ecb507376566d0edaa1f6bfa6a2907d42f (diff)
decoder: cope with new GstVaapiContextInfo based API.
Update decoders to report the maximum number of reference frames to use.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_vc1.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_vc1.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
index 7ee0594d..d54a18ae 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
@@ -194,11 +194,16 @@ ensure_context(GstVaapiDecoderVC1 *decoder)
}
if (reset_context) {
- reset_context = gst_vaapi_decoder_ensure_context(
+ GstVaapiContextInfo info;
+
+ info.profile = priv->profile;
+ info.entrypoint = entrypoint;
+ info.width = priv->width;
+ info.height = priv->height;
+ info.ref_frames = 2;
+ reset_context = gst_vaapi_decoder_ensure_context(
GST_VAAPI_DECODER(decoder),
- priv->profile,
- entrypoint,
- priv->width, priv->height
+ &info
);
if (!reset_context)
return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;