]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: oops, the first segment wasn't played. closing playback is faster too.
authorSteve Lhomme <robux@videolan.org>
Sun, 3 Apr 2005 18:12:54 +0000 (18:12 +0000)
committerSteve Lhomme <robux@videolan.org>
Sun, 3 Apr 2005 18:12:54 +0000 (18:12 +0000)
modules/demux/mkv.cpp

index 3b2b549e6b9737b187d524158cce2955ff6bae6a..e3dca8928d36bf298fe11be067c039b6870dd568 100644 (file)
@@ -1833,6 +1833,9 @@ static int Demux( demux_t *p_demux)
 
         if( p_segmet->BlockGet( &block, &i_block_ref1, &i_block_ref2, &i_block_duration ) )
         {
+            if ( p_sys->demuxer.b_die )
+                return 0;
+
             if ( p_vsegment->EditionIsOrdered() )
             {
                 // check if there are more chapters to read
@@ -3443,6 +3446,8 @@ bool demux_sys_t::PreparePlayback( )
     /* add information */
     p_current_segment->Segment()->InformationCreate( );
 
+    p_current_segment->Segment()->Select( 0 );
+
     return p_current_segment->Select( *title );
 }