mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
inputselector: Don't forward stream-start sticky events
Only one STREAM_START event should be let through, else it will confuse downstream elements that think a new stream is starting whereas in fact we are just switching to a different input. In the future we might want to let them through but with the same sequence number.
This commit is contained in:
parent
f24d36c380
commit
c33d2f7aba
1 changed files with 1 additions and 1 deletions
|
@ -739,7 +739,7 @@ forward_sticky_events (GstPad * sinkpad, GstEvent ** event, gpointer user_data)
|
|||
gst_event_set_seqnum (e, GST_SELECTOR_PAD_CAST (sinkpad)->segment_seqnum);
|
||||
|
||||
gst_pad_push_event (sel->srcpad, e);
|
||||
} else {
|
||||
} else if (GST_EVENT_TYPE (*event) != GST_EVENT_STREAM_START) {
|
||||
gst_pad_push_event (sel->srcpad, gst_event_ref (*event));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue