[vlc-commits] demux:mkv: document the 2 values that influence seeking

Steve Lhomme git at videolan.org
Wed Feb 14 13:46:19 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 10:38:03 2018 +0100| [6be2ffe9f8bd1a89b05371876853f76a89f6b887] | committer: Steve Lhomme

demux:mkv: document the 2 values that influence seeking

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6be2ffe9f8bd1a89b05371876853f76a89f6b887
---

 modules/demux/mkv/matroska_segment.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 9c59e8d2fe..8eb4333f2b 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -839,6 +839,7 @@ bool matroska_segment_c::Seek( demux_t &demuxer, mtime_t i_absolute_mk_date, mti
             i_mk_seek_time  = it->second.pts;
         }
 
+        // blocks that will be not be read until this fpos
         if ( b_accurate )
             trackit->second->i_skip_until_fpos = it->second.fpos;
         else
@@ -867,6 +868,7 @@ bool matroska_segment_c::Seek( demux_t &demuxer, mtime_t i_absolute_mk_date, mti
     msg_Dbg( &sys.demuxer, "seek: preroll{ req: %" PRId64 ", start-pts: %" PRId64 ", start-fpos: %" PRIu64 "} ",
       sys.i_start_pts, sys.i_pts, i_seek_position );
 
+    // blocks that will be read and decoded but discarded until this pts
     es_out_Control( sys.demuxer.out, ES_OUT_SET_NEXT_DISPLAY_TIME, sys.i_start_pts );
     return true;
 }



More information about the vlc-commits mailing list