Commit 9d2a0930 authored by Jean-Baptiste Kempf's avatar 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 3d493727)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 760d145f
......@@ -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 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment