summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-11-19 12:44:35 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-12-03 15:52:08 +0100
commit44bf274b607c8ac93fb89522446ddd7d4fe8d24c (patch)
tree4e72466707a89ad1ca5479421bde8c4e09391387
parentd4ceb8c7a6bd48a17810d368400b65de35edf1ae (diff)
qtdemux: avoid sending EOS event twice
-rw-r--r--gst/qtdemux/qtdemux.c6
1 files changed, 5 insertions, 1 deletions
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));
}