qtdemux: avoid sending EOS event twice

This commit is contained in:
Mark Nauwelaerts 2010-11-19 12:44:35 +01:00
parent d4ceb8c7a6
commit 44bf274b60

View file

@ -755,8 +755,12 @@ gst_qtdemux_push_event (GstQTDemux * qtdemux, GstEvent * event)
if ((pad = stream->pad)) {
has_valid_stream = TRUE;
if (etype == GST_EVENT_EOS)
if (etype == GST_EVENT_EOS) {
/* let's not send twice */
if (stream->sent_eos)
continue;
stream->sent_eos = TRUE;
}
gst_pad_push_event (pad, gst_event_ref (event));
}