mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
parsebin: Don't store bogus caps on GstStream
If we can't get the current caps when receiving a stream-start, that's fine, they can/will be provided by other means at a later time. What we definitely should not do is provide the starting caps of the chain, which are potentially completely different from the end ones (like for example `application/x-rtp`) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7764>
This commit is contained in:
parent
a556cf6826
commit
9641fac29f
1 changed files with 0 additions and 4 deletions
|
@ -4129,10 +4129,6 @@ gst_parse_pad_stream_start_event (GstParsePad * parsepad, GstEvent * event)
|
|||
caps = gst_pad_get_current_caps (peer);
|
||||
gst_object_unref (peer);
|
||||
}
|
||||
if (caps == NULL && parsepad->chain && parsepad->chain->start_caps) {
|
||||
/* Still no caps, use the chain start caps */
|
||||
caps = gst_caps_ref (parsepad->chain->start_caps);
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (parsepad,
|
||||
"Saw stream_start with no GstStream. Adding one. Caps %"
|
||||
|
|
Loading…
Reference in a new issue