[vlc-devel] commit: mkv: only use percentage of duration seeking when we have an seeking cues. ( Derk-Jan Hartman )

git version control git at videolan.org
Fri Aug 15 03:41:26 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu Aug 14 19:56:11 2008 +0200| [fc3a1cf242bbdf1c4ead3db490ce1838c9e08d31] | committer: Derk-Jan Hartman 

mkv: only use percentage of duration seeking when we have an seeking cues.

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

 modules/demux/mkv.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp
index 7ffed61..300c392 100644
--- a/modules/demux/mkv.cpp
+++ b/modules/demux/mkv.cpp
@@ -3467,7 +3467,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, double f_percent, chapter_it
     /* seek without index or without date */
     if( f_percent >= 0 && (config_GetInt( p_demux, "mkv-seek-percent" ) || !p_segment->b_cues || i_date < 0 ))
     {
-        if (p_sys->f_duration >= 0)
+        if( p_sys->f_duration >= 0 && p_segment->b_cues )
         {
             i_date = int64_t( f_percent * p_sys->f_duration * 1000.0 );
         }




More information about the vlc-devel mailing list