Commit 10b8c360 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: oops, the first segment wasn't played. closing playback is faster too.

parent 2f4bc2d8
...@@ -1833,6 +1833,9 @@ static int Demux( demux_t *p_demux) ...@@ -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_segmet->BlockGet( &block, &i_block_ref1, &i_block_ref2, &i_block_duration ) )
{ {
if ( p_sys->demuxer.b_die )
return 0;
if ( p_vsegment->EditionIsOrdered() ) if ( p_vsegment->EditionIsOrdered() )
{ {
// check if there are more chapters to read // check if there are more chapters to read
...@@ -3443,6 +3446,8 @@ bool demux_sys_t::PreparePlayback( ) ...@@ -3443,6 +3446,8 @@ bool demux_sys_t::PreparePlayback( )
/* add information */ /* add information */
p_current_segment->Segment()->InformationCreate( ); p_current_segment->Segment()->InformationCreate( );
p_current_segment->Segment()->Select( 0 );
return p_current_segment->Select( *title ); return p_current_segment->Select( *title );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment