mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +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++) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue