Use fixed caps on the src pad, they are not meant to change from video/x-vaapi-surface.

This commit is contained in:
gb 2010-05-11 16:23:17 +00:00 committed by Gwenole Beauchesne
parent 39dbd70c8f
commit af1fd4b910

View file

@ -446,6 +446,7 @@ gst_vaapidecode_init(GstVaapiDecode *decode, GstVaapiDecodeClass *klass)
"src" "src"
); );
gst_pad_use_fixed_caps(decode->srcpad);
gst_pad_set_event_function(decode->srcpad, gst_vaapidecode_src_event); gst_pad_set_event_function(decode->srcpad, gst_vaapidecode_src_event);
gst_element_add_pad(GST_ELEMENT(decode), decode->srcpad); gst_element_add_pad(GST_ELEMENT(decode), decode->srcpad);
} }