mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
qtdemux: don't send EOS twice on the same pad.
This commit is contained in:
parent
ae8d210fdb
commit
42cde1ba3c
1 changed files with 4 additions and 1 deletions
|
@ -716,8 +716,11 @@ gst_qtdemux_push_event (GstQTDemux * qtdemux, GstEvent * event)
|
||||||
|
|
||||||
for (n = 0; n < qtdemux->n_streams; n++) {
|
for (n = 0; n < qtdemux->n_streams; n++) {
|
||||||
GstPad *pad;
|
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)))
|
if (gst_pad_push_event (pad, gst_event_ref (event)))
|
||||||
pushed_sucessfully = TRUE;
|
pushed_sucessfully = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue