From 7c0a9cb5853a5cd3505a39a24ee81effa010a4a6 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 28 Feb 2017 11:50:45 +1100 Subject: [PATCH] splitmuxsrc: Fix reverse playback Fix the check for whether the start time of the segment has been reached when playing in reverse. Otherwise, playback stops after reaching the start of any file part, instead of continuing until all parts within the segment have played --- gst/multifile/gstsplitmuxsrc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c index add398b..b27cf00 100644 --- a/gst/multifile/gstsplitmuxsrc.c +++ b/gst/multifile/gstsplitmuxsrc.c @@ -964,9 +964,11 @@ gst_splitmux_end_of_part (GstSplitMuxSrc * splitmux, SplitMuxSrcPad * splitpad) if (splitmux->play_segment.start != -1) { GstClockTime part_start = gst_splitmux_part_reader_get_start_offset (splitmux->parts[cur_part]); - if (part_start >= splitmux->play_segment.start) { + if (part_start <= splitmux->play_segment.start) { GST_DEBUG_OBJECT (splitmux, - "Start position was within that part. Finishing"); + "Start position %" GST_TIME_FORMAT + " was within that part. Finishing", + GST_TIME_ARGS (splitmux->play_segment.start)); next_part = -1; } } -- 2.7.4