vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Wed Feb 14 13:21:02 2018 +0100| [0370d27d7542842a93f7dc225e35945778c32685] | committer: Hugo Beauzée-Luyssen
demux:mkv: don't read the first Cluster if we can't seek back (cherry picked from commit afdf229fa903a4a3c4d0d67502c5efa1bdec237f) Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0370d27d7542842a93f7dc225e35945778c32685 --- modules/demux/mkv/matroska_segment_parse.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp index 46ba14cd68..c16176e9f9 100644 --- a/modules/demux/mkv/matroska_segment_parse.cpp +++ b/modules/demux/mkv/matroska_segment_parse.cpp @@ -1417,6 +1417,11 @@ bool matroska_segment_c::ParseCluster( KaxCluster *cluster, bool b_update_start_ return false; } + bool b_seekable; + vlc_stream_Control( sys.demuxer.s, STREAM_CAN_SEEK, &b_seekable ); + if (!b_seekable) + return false; + try { EbmlElement *el; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits