[vlc-devel] [PATCH 7/9] mkv: prepare playback for the current chapter selected
Steve Lhomme
robux4 at videolabs.io
Thu Mar 17 16:53:06 CET 2016
this is important as seeking is always done from a virtual_chapter (via its segment)
---
modules/demux/mkv/demux.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 4c6d1cc..3d9bd45 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -799,7 +799,7 @@ bool demux_sys_t::PreparePlayback( virtual_segment_c & new_vsegment, mtime_t i_m
/* Seek to the beginning */
p_current_vsegment->Seek(p_current_vsegment->CurrentSegment()->sys.demuxer,
- i_mk_date, NULL, -1);
+ i_mk_date, p_current_vsegment->p_current_vchapter, -1);
return true;
}
--
2.7.1
More information about the vlc-devel
mailing list