unlock = TRUE;
GST_PAD_STREAM_LOCK (funnel->srcpad);
- if ((GST_EVENT_TYPE (event) == GST_EVENT_EOS) &&
- (!gst_funnel_all_sinkpads_eos_unlocked (funnel, pad))) {
- forward = FALSE;
- } else if (funnel->last_sinkpad && (pad != funnel->last_sinkpad)) {
+ if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
+ if (!gst_funnel_all_sinkpads_eos_unlocked (funnel, pad)) {
+ forward = FALSE;
+ } else {
+ forward = TRUE;
+ }
+ } else if (pad != funnel->last_sinkpad) {
forward = FALSE;
}
}
td.funnelsink11)));
/* This will fail because everything is EOS already */
- fail_unless (gst_pad_push_event (td.mysrc1, gst_event_new_eos ()));
+ fail_if (gst_pad_push_event (td.mysrc1, gst_event_new_eos ()));
fail_unless (num_eos == 2);
fail_unless (gst_pad_unlink (td.mysrc1, td.funnelsink11));
fail_unless (gst_pad_push_event (td.mysrc1, gst_event_new_eos ()));
fail_unless (gst_pad_push_event (td.mysrc2, gst_event_new_eos ()));
- fail_unless (num_eos == 2);
+ fail_unless (num_eos == 3);
fail_unless (gst_pad_unlink (td.mysrc1, td.funnelsink11));
gst_element_release_request_pad (td.funnel, td.funnelsink11);