mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +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)) {
|
if ((pad = stream->pad)) {
|
||||||
has_valid_stream = TRUE;
|
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;
|
stream->sent_eos = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
gst_pad_push_event (pad, gst_event_ref (event));
|
gst_pad_push_event (pad, gst_event_ref (event));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue