[vlc-devel] [PATCH 2/5] mkv: crash fix

Steve Lhomme robux4 at videolabs.io
Thu Mar 17 17:47:17 CET 2016


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

diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 8c84513..ca50504 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -663,7 +663,8 @@ bool demux_sys_t::PreloadLinked()
 
     /* Set current chapter */
     p_current_vsegment->p_current_vchapter = p_current_vsegment->veditions[p_current_vsegment->i_current_edition]->getChapterbyTimecode(0);
-    msg_Dbg( &demuxer, "NEW START CHAPTER uid=%" PRId64, p_current_vsegment->p_current_vchapter->p_chapter->i_uid );
+    msg_Dbg( &demuxer, "NEW START CHAPTER uid=%" PRId64, p_current_vsegment->p_current_vchapter && p_current_vsegment->p_current_vchapter->p_chapter ?
+                 p_current_vsegment->p_current_vchapter->p_chapter->i_uid : 0 );
 
     used_vsegments.push_back( p_current_vsegment );
 
-- 
2.7.1



More information about the vlc-devel mailing list