Add missing video context queries.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Nicolas Dufresne 2011-11-25 12:28:04 -05:00 committed by Gwenole Beauchesne
parent 2c5f034c66
commit cbf81d7d51
2 changed files with 2 additions and 0 deletions

View 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 */

View 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 */