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
This commit is contained in:
Srimanta Panda 2014-04-25 07:38:00 +00:00 committed by Olivier Crête
parent c10663ba3e
commit e3e1b0eac7

View file

@ -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;
}
}