vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <[email protected]> | Wed 
Feb 15 01:24:33 2012 +0100| [9d2a09302a4c12c5cb312a5db93ce3c2c329b222] | 
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
(cherry picked from commit 3d4937278085b979683fe0db96e3516a75bc81c5)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 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 17e659b..749faaf 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