mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
82ccfa19ea
commit
453438a9dd
1 changed files with 3 additions and 2 deletions
|
@ -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:{
|
||||||
|
|
Loading…
Reference in a new issue