mxfdemux: fix push mode unit test failure

In the sink event handler we end up sending multiple EOS
events per pad. Don't return FALSE when sending the
second EOS on an already-EOS pad fails. Not sure if there
was a reason for sending a second EOS, so leaving the
code in there for now, but assume all went fine if there
are source pads, which is slightly less wrong than before.
This function needs work.
This commit is contained in:
Tim-Philipp Müller 2013-02-11 19:53:39 +00:00
parent 82ccfa19ea
commit 453438a9dd

View file

@ -3760,8 +3760,9 @@ gst_mxf_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
} }
} }
if (!(ret = gst_pad_event_default (pad, parent, event))) /* and one more time for good measure apparently? */
GST_WARNING_OBJECT (pad, "failed pushing EOS on streams"); gst_pad_event_default (pad, parent, event);
ret = (demux->src->len > 0);
break; break;
} }
case GST_EVENT_SEGMENT:{ case GST_EVENT_SEGMENT:{