From e3e1b0eac769a4d70a705147dcebc8e941af1460 Mon Sep 17 00:00:00 2001 From: Srimanta Panda Date: Fri, 25 Apr 2014 07:38:00 +0000 Subject: [PATCH] funnel: Check if the last pad was set If no data is coming but only EOS is sent from all of the sinkpad, it is not forwarding the EOS. https://bugzilla.gnome.org/show_bug.cgi?id=727945 --- plugins/elements/gstfunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstfunnel.c b/plugins/elements/gstfunnel.c index 1a1b0af29f..272a9089d2 100644 --- a/plugins/elements/gstfunnel.c +++ b/plugins/elements/gstfunnel.c @@ -263,7 +263,7 @@ gst_funnel_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) if ((GST_EVENT_TYPE (event) == GST_EVENT_EOS) && (!gst_funnel_all_sinkpads_eos_unlocked (funnel, pad))) { forward = FALSE; - } else if (pad != funnel->last_sinkpad) { + } else if (funnel->last_sinkpad && (pad != funnel->last_sinkpad)) { forward = FALSE; } }