Skip to content

Commit bee17cf

Browse files
robUx4jbkempf
authored andcommitted
mkv: use the more generic JumpTo() call
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
1 parent d1a4ba9 commit bee17cf

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

modules/demux/mkv/chapter_command.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,7 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
541541
p_vchapter = sys.p_current_vsegment->BrowseCodecPrivate( 1, MatchPgcNumber, &i_pgcn, 2 );
542542
if ( p_vchapter != NULL )
543543
{
544-
if ( !p_vchapter->Enter( true ) )
545-
// jump to the location in the found segment
546-
sys.p_current_vsegment->Seek( sys.demuxer, p_vchapter->i_mk_virtual_start_time, p_vchapter, -1 );
547-
544+
sys.JumpTo( *sys.p_current_vsegment, *p_vchapter );
548545
f_result = true;
549546
}
550547
break;
@@ -559,10 +556,7 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
559556
p_vchapter = p_vchapter->BrowseCodecPrivate( 1, MatchCellNumber, &i_cn, 1 );
560557
if ( p_vchapter != NULL )
561558
{
562-
if ( !p_vchapter->Enter( true ) )
563-
// jump to the location in the found segment
564-
sys.p_current_vsegment->Seek( sys.demuxer, p_vchapter->i_mk_virtual_start_time, p_vchapter, -1 );
565-
559+
sys.JumpTo( *sys.p_current_vsegment, *p_vchapter );
566560
f_result = true;
567561
}
568562
break;

0 commit comments

Comments
 (0)