mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
Use fixed caps on the src pad, they are not meant to change from video/x-vaapi-surface.
This commit is contained in:
parent
39dbd70c8f
commit
af1fd4b910
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue