vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Wed Feb 15 
01:24:33 2012 +0100| [3d4937278085b979683fe0db96e3516a75bc81c5] | committer: 
Jean-Baptiste Kempf

MKV: workaround the seeking-to-0 issue on Win32

The faster way to seek does not work on win32, for some reason
Close #6006

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

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

diff --git a/modules/demux/mkv/matroska_segment.cpp 
b/modules/demux/mkv/matroska_segment.cpp
index 04c6146..4a69a84 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -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 )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to