From 44bf274b607c8ac93fb89522446ddd7d4fe8d24c Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 19 Nov 2010 12:44:35 +0100 Subject: [PATCH] qtdemux: avoid sending EOS event twice --- gst/qtdemux/qtdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 880758523..b8576cef4 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -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)); } -- 2.34.1