Add missing video context queries.
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 25 Nov 2011 17:28:04 +0000 (12:28 -0500)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 12 Dec 2011 14:02:15 +0000 (15:02 +0100)
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapiconvert.c
gst/vaapi/gstvaapidecode.c

index 39f1c48..f692b50 100644 (file)
@@ -352,6 +352,7 @@ gst_vaapiconvert_init(GstVaapiConvert *convert, GstVaapiConvertClass *klass)
         sinkpad,
         gst_vaapiconvert_sinkpad_buffer_alloc
     );
+    gst_pad_set_query_function(sinkpad, gst_vaapiconvert_query);
     g_object_unref(sinkpad);
 
     /* Override query on src pad */
index ffba8fb..17c6320 100644 (file)
@@ -687,6 +687,7 @@ gst_vaapidecode_init(GstVaapiDecode *decode, GstVaapiDecodeClass *klass)
     gst_pad_set_setcaps_function(decode->sinkpad, gst_vaapidecode_set_caps);
     gst_pad_set_chain_function(decode->sinkpad, gst_vaapidecode_chain);
     gst_pad_set_event_function(decode->sinkpad, gst_vaapidecode_sink_event);
+    gst_pad_set_query_function(decode->sinkpad, gst_vaapidecode_query);
     gst_element_add_pad(GST_ELEMENT(decode), decode->sinkpad);
 
     /* Pad through which data goes out of the element */