mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
qtdemux: avoid sending EOS event twice
This commit is contained in:
parent
d4ceb8c7a6
commit
44bf274b60
1 changed files with 5 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue