[vlc-commits] MKV: Reset demux internal time when seeking to 0

Denis Charmet git at videolan.org
Tue Jan 24 01:41:06 CET 2012


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Tue Jan 24 00:34:10 2012 +0100| [ccb134a643baf9c9b60ae475198dddb57f107713] | committer: Jean-Baptiste Kempf

MKV: Reset demux internal time when seeking to 0

Fix the first part of #5896

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 6bb18ee..635140a 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -733,6 +733,8 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
         delete ep;
         ep = new EbmlParser( &es, segment, &sys.demuxer );
         cluster = NULL;
+        sys.i_start_pts = 0;
+        sys.i_pts = 0;
         return;       
     }
 



More information about the vlc-commits mailing list