From 42cde1ba3c727a64c5888f0e6159fbca89cf9fad Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Tue, 14 Sep 2010 17:41:28 +0200 Subject: [PATCH] qtdemux: don't send EOS twice on the same pad. --- gst/qtdemux/qtdemux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 4faab5f86a..1c091bd507 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -716,8 +716,11 @@ gst_qtdemux_push_event (GstQTDemux * qtdemux, GstEvent * event) for (n = 0; n < qtdemux->n_streams; n++) { GstPad *pad; + QtDemuxStream *stream = qtdemux->streams[n]; - if ((pad = qtdemux->streams[n]->pad)) { + if (etype == GST_EVENT_EOS && stream->sent_eos) + pushed_sucessfully = TRUE; + else if ((pad = stream->pad)) { if (gst_pad_push_event (pad, gst_event_ref (event))) pushed_sucessfully = TRUE; }