mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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
This commit is contained in:
parent
c82ced1868
commit
7c0a9cb585
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue