From f93c52684ab6386dc37e1d69579a2ebf3a6b30c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 9 May 2013 12:27:12 +0200 Subject: [PATCH] outputselector: Always forward sticky events to all pads --- plugins/elements/gstoutputselector.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/elements/gstoutputselector.c b/plugins/elements/gstoutputselector.c index 99dc05114d..fe5f99d06a 100644 --- a/plugins/elements/gstoutputselector.c +++ b/plugins/elements/gstoutputselector.c @@ -546,19 +546,19 @@ gst_output_selector_event (GstPad * pad, GstObject * parent, GstEvent * event) res = gst_pad_event_default (pad, parent, event); break; } - case GST_EVENT_EOS: - /* Send eos to all src pads */ - res = gst_pad_event_default (pad, parent, event); - break; default: { - /* Send other events to pending or active src pad */ - active = gst_output_selector_get_active (sel); - if (active) { - res = gst_pad_push_event (active, event); - gst_object_unref (active); + if (GST_EVENT_IS_STICKY (event)) { + res = gst_pad_event_default (pad, parent, event); } else { - gst_event_unref (event); + /* Send other events to pending or active src pad */ + active = gst_output_selector_get_active (sel); + if (active) { + res = gst_pad_push_event (active, event); + gst_object_unref (active); + } else { + gst_event_unref (event); + } } break; }