mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
basevideocodec: By default don't allow caps changes on the srcpad
This fixed playback of Dirac files with schrodec when upstream wants a different width/height, basevideocodec accepts this and then pushes buffers with new caps but content of the old caps. In the best case this will just result in wrong unit size and a failure in basestransform elements.
This commit is contained in:
parent
0fd47d8ba6
commit
939baee2bd
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ gst_base_video_codec_init (GstBaseVideoCodec * base_video_codec,
|
|||
g_return_if_fail (pad_template != NULL);
|
||||
|
||||
base_video_codec->srcpad = gst_pad_new_from_template (pad_template, "src");
|
||||
gst_pad_use_fixed_caps (base_video_codec->srcpad);
|
||||
gst_element_add_pad (GST_ELEMENT (base_video_codec),
|
||||
base_video_codec->srcpad);
|
||||
|
||||
|
|
Loading…
Reference in a new issue