[vlc-commits] mkv: removed unnecessary diagnostic and branching

Filip Roséen git at videolan.org
Mon May 9 15:09:29 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | Mon May  9 14:53:13 2016 +0200| [33b8d46f9032d26143923e1d25e51552eb850b4a] | committer: Jean-Baptiste Kempf

mkv: removed unnecessary diagnostic and branching

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33b8d46f9032d26143923e1d25e51552eb850b4a
---

 modules/demux/mkv/mkv.cpp |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index ad90cc6..89a98bb 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -476,15 +476,9 @@ static void Seek( demux_t *p_demux, mtime_t i_mk_date, double f_percent, virtual
     }
 
     /* seek without index or without date */
-    if( f_percent >= 0 && (var_InheritBool( p_demux, "mkv-seek-percent" ) || !p_segment->b_cues || i_mk_date < 0 ))
+    if( f_percent >= 0 && (var_InheritBool( p_demux, "mkv-seek-percent" ) || i_mk_date < 0 ))
     {
         i_mk_date = int64_t( f_percent * p_sys->f_duration * 1000.0 );
-        if( !p_segment->b_cues )
-        {
-            int64_t i_pos = int64_t( f_percent * stream_Size( p_demux->s ) );
-
-            msg_Dbg( p_demux, "lengthy way of seeking for pos:%" PRId64, i_pos );
-        }
     }
     p_vsegment->Seek( *p_demux, i_mk_date, p_vchapter );
 }



More information about the vlc-commits mailing list