When we receive an UNEXPECTED from a stream, move to the next stream and only go
EOS when all streams are EOS. When selecting a stream to push, ignore streams
that went EOS.
Fixes #607949
GstAviStream *stream;
stream = &avi->stream[i];
+
+ /* ignore streams that finished */
+ if (stream->last_flow == GST_FLOW_UNEXPECTED)
+ continue;
+
position = stream->current_timestamp;
/* position of -1 is EOS */
" setting EOS (%" GST_TIME_FORMAT " > %" GST_TIME_FORMAT ")",
GST_TIME_ARGS (timestamp), GST_TIME_ARGS (avi->segment.stop));
ret = GST_FLOW_UNEXPECTED;
- goto beach;
+ /* move to next stream */
+ goto next;
}
pull_failed:
{