[vlc-commits] demux:mkv: do not try to read concatenated segments when we can't seek

Steve Lhomme git at videolan.org
Wed Jan 3 11:17:46 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan  2 16:38:13 2018 +0100| [3697d002adef72e0b5284cb756b10aa5c84dbf9a] | committer: Jean-Baptiste Kempf

demux:mkv: do not try to read concatenated segments when we can't seek

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 6cd9aff8f6..f132cae674 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -532,6 +532,9 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
             b_l0_handled = true;
         }
 
+        if ( !b_seekable )
+            break;
+
         EbmlElement* p_l0_prev = p_l0;
 
         if (p_l0->IsFiniteSize() )



More information about the vlc-commits mailing list