vlc | branch: master | Steve Lhomme <rob...@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;
 }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to