mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
decodebin3: Fix slot input linking when the associated stream has changed
Setting the input field on the empty slot prevents future linking of it and will result in flow errors later on. This was observed in WebKit's MediaStream source element, when it changes the caps on one of its associated streams, from an encoded format to a raw video format. The associated stream-id on the sticky stream-start event doesn´t change, but the element creates a new GstStream with a different ID and sets it on the stream-start event. Stream parsing is disabled in urisourcebin, so decodebin3 handles the parsing. Without this patch we would end-up with unlinked pads in decodebin3 after switching to the raw video format. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5067>
This commit is contained in:
parent
f9360d47c1
commit
eea9f74f95
1 changed files with 0 additions and 1 deletions
|
@ -2657,7 +2657,6 @@ get_slot_for_input (GstDecodebin3 * dbin, DecodebinInputStream * input)
|
|||
|
||||
if (empty_slot) {
|
||||
GST_DEBUG_OBJECT (dbin, "Re-using existing unused slot %d", empty_slot->id);
|
||||
empty_slot->input = input;
|
||||
return empty_slot;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue