qtdemux: avoid sending EOS event twice
This commit is contained in:
parent
d4ceb8c7a6
commit
44bf274b60
@ -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…
x
Reference in New Issue
Block a user