[vlc-commits] [Git][videolan/vlc][master] demux: mkv: make "mkv-seek-percent" obsolete

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Nov 9 10:47:24 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2eba4cdf by Steve Lhomme at 2026-11-09T10:24:38+00:00
demux: mkv: make "mkv-seek-percent" obsolete

mkv-seek-percent is broken since 11d6a0719f60e769c3f5f72f879b70607aa5e82e
since the call with a valid float was always paired with a -1 date
and thus would pass the test regardless of the value of mkv-seek-percent.

- - - - -


1 changed file:

- modules/demux/mkv/mkv.cpp


Changes:

=====================================
modules/demux/mkv/mkv.cpp
=====================================
@@ -70,9 +70,7 @@ vlc_module_begin ()
             N_("Preload MKV files in the same directory"),
             N_("Preload matroska files in the same directory to find linked segments (not good for broken files).") )
 
-    add_bool( "mkv-seek-percent", false,
-            N_("Seek based on percent not time"),
-            nullptr )
+    add_obsolete_bool( "mkv-seek-percent" ) // since 4.0.0
 
     add_bool( "mkv-use-dummy", false,
             N_("Dummy Elements"),
@@ -522,7 +520,7 @@ static int Seek( demux_t *p_demux, vlc_tick_t i_mk_date, double f_percent, bool
     }
 
     /* seek without index or without date */
-    if( f_percent >= 0 && (var_InheritBool( p_demux, "mkv-seek-percent" ) || i_mk_date < 0 ))
+    if( f_percent >= 0 && i_mk_date < 0 )
     {
         i_mk_date = vlc_tick_t( f_percent * p_sys->i_duration );
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2eba4cdf9046578399796247ee0998605abb157f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2eba4cdf9046578399796247ee0998605abb157f
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list