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

Steve Lhomme git at videolan.org
Wed Feb 14 16:48:15 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 10:38:03 2018 +0100| [1349c4a938dc6f93c97a58a17c5079724f8162ad] | committer: Hugo Beauzée-Luyssen

demux:mkv: document the 2 values that influence seeking

(cherry picked from commit 6be2ffe9f8bd1a89b05371876853f76a89f6b887)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1349c4a938dc6f93c97a58a17c5079724f8162ad
---

 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 2711906274..388d0dc7af 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -861,6 +861,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
@@ -889,6 +890,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