]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: fix playback of files with chapters
authorSteve Lhomme <robux@videolan.org>
Mon, 4 Apr 2005 18:25:09 +0000 (18:25 +0000)
committerSteve Lhomme <robux@videolan.org>
Mon, 4 Apr 2005 18:25:09 +0000 (18:25 +0000)
modules/demux/mkv.cpp

index 04c0ba1661af4aceb6d5874970dfb5743840f2b5..0821305f2fad6bdbbc6a8ff80a8ec950f2ca7f2f 100644 (file)
@@ -1613,7 +1613,8 @@ bool virtual_segment_t::Select( input_title_t & title )
             editions[j].Append( p_segment->stored_editions[j] );
     }
 
-    Edition()->PublishChapters( title );
+    if ( Edition() != NULL )
+        Edition()->PublishChapters( title );
 
     return true;
 }