summaryrefslogtreecommitdiff
path: root/plugins/elements
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-08-14 18:42:31 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-08-14 18:42:31 +0200
commitc33d2f7aba6b8c16557c2bf2863437ac2b2c61d4 (patch)
treef87f5d1673e3d3994d29233ef3a49282d6c89bf6 /plugins/elements
parentf24d36c380d87f54bd71348dbbc52a47dda9cd9a (diff)
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.
Diffstat (limited to 'plugins/elements')
-rw-r--r--plugins/elements/gstinputselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index 7d63fb0c2..e4999160d 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -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));
}