[vlc-devel] [PATCH] Reset demux internal time when seeking to 0
Denis Charmet
typx at dinauz.org
Tue Jan 24 00:34:10 CET 2012
Fix the first part of #5896
---
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;
}
--
1.7.8.3
More information about the vlc-devel
mailing list