[vlc-commits] mkv: use the more generic JumpTo() call
Steve Lhomme
git at videolan.org
Thu Mar 17 23:56:05 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Mar 17 17:47:18 2016 +0100| [bee17cf13c2356830bc314e02868a6c78bf427ab] | committer: Jean-Baptiste Kempf
mkv: use the more generic JumpTo() call
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bee17cf13c2356830bc314e02868a6c78bf427ab
---
modules/demux/mkv/chapter_command.cpp | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/modules/demux/mkv/chapter_command.cpp b/modules/demux/mkv/chapter_command.cpp
index b859600..ae31e46 100644
--- a/modules/demux/mkv/chapter_command.cpp
+++ b/modules/demux/mkv/chapter_command.cpp
@@ -541,10 +541,7 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
p_vchapter = sys.p_current_vsegment->BrowseCodecPrivate( 1, MatchPgcNumber, &i_pgcn, 2 );
if ( p_vchapter != NULL )
{
- if ( !p_vchapter->Enter( true ) )
- // jump to the location in the found segment
- sys.p_current_vsegment->Seek( sys.demuxer, p_vchapter->i_mk_virtual_start_time, p_vchapter, -1 );
-
+ sys.JumpTo( *sys.p_current_vsegment, *p_vchapter );
f_result = true;
}
break;
@@ -559,10 +556,7 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
p_vchapter = p_vchapter->BrowseCodecPrivate( 1, MatchCellNumber, &i_cn, 1 );
if ( p_vchapter != NULL )
{
- if ( !p_vchapter->Enter( true ) )
- // jump to the location in the found segment
- sys.p_current_vsegment->Seek( sys.demuxer, p_vchapter->i_mk_virtual_start_time, p_vchapter, -1 );
-
+ sys.JumpTo( *sys.p_current_vsegment, *p_vchapter );
f_result = true;
}
break;
More information about the vlc-commits
mailing list