Commit e06c3861 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: minor improvements

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