vlc | branch: master | Filip Roséen <[email protected]> | Sat May 21 02:17:55 2016 +0200| [9d69cb3788e08cbc81a92108997d3796efdaeb59] | committer: Jean-Baptiste Kempf
mkv: add cluster position info from cues Every cue in the matroska format is based on the location of the cluster in which it is part of, as such we should add this information (cluster position) to the code responsible for seeking. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d69cb3788e08cbc81a92108997d3796efdaeb59 --- 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 07c431e..66198e5 100644 --- a/modules/demux/mkv/matroska_segment.cpp +++ b/modules/demux/mkv/matroska_segment.cpp @@ -168,6 +168,8 @@ void matroska_segment_c::LoadCues( KaxCues *cues ) { kccp_ptr->ReadData( es.I_O() ); cue_position = segment->GetGlobalPosition( static_cast<uint64>( *kccp_ptr ) ); + + _seeker.add_cluster_position( cue_position ); } else if( MKV_CHECKED_PTR_DECL ( kcbn_ptr, KaxCueBlockNumber, el ) ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
