avidemux: Reverse playback does not consider segment.start

During reverse playback, the media should stop playing at segment.start
This does not happen, and avidemux continues to process data even when
current timestamp is less that segment.start.

https://bugzilla.gnome.org/show_bug.cgi?id=755094
This commit is contained in:
Vineeth T M 2015-09-16 16:03:02 +09:00 committed by Sebastian Dröge
parent e6a4c81af5
commit bff62bfe13

View file

@ -5186,6 +5186,10 @@ gst_avi_demux_loop_data (GstAviDemux * avi)
&& (timestamp > avi->segment.stop)) {
goto eos_stop;
}
} else {
if (keyframe && GST_CLOCK_TIME_IS_VALID (avi->segment.start)
&& (timestamp < avi->segment.start))
goto eos_stop;
}
GST_LOG ("reading buffer (size=%" G_GUINT64_FORMAT "), stream %d, pos %"