flvdemux: also check for segment stop for non-segment-seek

This commit is contained in:
Mark Nauwelaerts 2010-03-29 15:27:37 +02:00
parent b9f569bfd0
commit d3ae0ef71f

View file

@ -743,8 +743,7 @@ gst_flv_demux_loop (GstPad * pad)
goto pause;
/* check EOS condition */
if ((demux->segment.flags & GST_SEEK_FLAG_SEGMENT) &&
(demux->segment.stop != -1) &&
if ((demux->segment.stop != -1) &&
(demux->segment.last_stop >= demux->segment.stop)) {
ret = GST_FLOW_UNEXPECTED;
goto pause;