Commit e06c3861 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: minor improvements

parent 4bbf555a
......@@ -4258,16 +4258,21 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
virtual_segment_c *p_segment;
chapter_item_c *p_chapter;
p_chapter = sys.BrowseCodecPrivate( 1, MatchTitleNumber, &i_title, sizeof(i_title), p_segment );
// TODO if the segment is not part of the current segment, select the new one
if ( p_segment != sys.p_current_segment )
if ( p_chapter != NULL )
{
sys.p_current_segment = p_segment;
sys.PreparePlayback();
// if the segment is not part of the current segment, select the new one
if ( p_segment != sys.p_current_segment )
{
sys.p_current_segment = p_segment;
sys.PreparePlayback();
}
p_chapter->Enter();
// jump to the location in the found segment
p_segment->Seek( sys.demuxer, p_chapter->i_user_start_time, -1, p_chapter );
}
// TODO jump to the location in the found segment
p_segment->Seek( sys.demuxer, p_chapter->i_user_start_time, -1, NULL );
break;
}
}
......
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