]> git.sesse.net Git - vlc/commitdiff
MKV: workaround the seeking-to-0 issue on Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 15 Feb 2012 00:24:33 +0000 (01:24 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 15 Feb 2012 00:24:33 +0000 (01:24 +0100)
The faster way to seek does not work on win32, for some reason
Close #6006

modules/demux/mkv/matroska_segment.cpp

index 04c614678dfa576a2f51169d2d2e51fba1544289..4a69a845450eafc2a173c8e5356495e6f48e8b9f 100644 (file)
@@ -725,6 +725,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
         }
     }
 
+#ifdef WIN32
     /* Don't try complex seek if we seek to 0 */
     if( i_date == 0 )
     {
@@ -738,6 +739,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
         sys.i_pts = 0;
         return;       
     }
+#endif
 
     if ( i_index > 0 )
     {