mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
avidemux: don't push EOS in streaming mode
In streaming mode, avidemux is not supposed to send an EOS event downstream but it is supposed to return UNEXPECTED from the chain function instead so that upstream can do the right EOS handling.
This commit is contained in:
parent
108774781d
commit
cb344828a4
1 changed files with 2 additions and 4 deletions
|
@ -3989,14 +3989,12 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
|
|||
return GST_FLOW_OK;
|
||||
} else if (tag == GST_RIFF_TAG_idx1) {
|
||||
GST_DEBUG ("Found index tag, stream done");
|
||||
gst_avi_demux_push_event (avi, gst_event_new_eos ());
|
||||
avi->have_eos = TRUE;
|
||||
return GST_FLOW_OK;
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
} else {
|
||||
GST_DEBUG ("No more stream chunks, send EOS");
|
||||
gst_avi_demux_push_event (avi, gst_event_new_eos ());
|
||||
avi->have_eos = TRUE;
|
||||
return GST_FLOW_OK;
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
}
|
||||
|
||||
if (!gst_avi_demux_peek_chunk (avi, &tag, &size)) {
|
||||
|
|
Loading…
Reference in a new issue