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

Denis Charmet git at videolan.org
Tue Jan 24 19:31:55 CET 2012


vlc/vlc-1.2 | branch: master | Denis Charmet <typx at dinauz.org> | Tue Jan 24 00:34:10 2012 +0100| [5d5a704a5b156cfd15836d9ce831f4994e486539] | 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>
(cherry picked from commit ccb134a643baf9c9b60ae475198dddb57f107713)

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

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

 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 7a8f67d..e096b2e 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