[vlc-devel] [PATCH 01/11] mkv: fixed DEMUX_GET_TIME

Filip Roséen filip at videolabs.io
Sat May 21 02:17:53 CEST 2016


When someone asks where we are we should reply with the PTS, not the
PCR (especially since the PCR is VLC_TS_INVALID after we seek, which is
when the core will ask for our position if we have slaves).
---
 modules/demux/mkv/mkv.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 76c8983..230597e 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -366,7 +366,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
         case DEMUX_GET_TIME:
             pi64 = va_arg( args, int64_t * );
-            *pi64 = p_sys->i_pcr;
+            *pi64 = p_sys->i_pts;
             return VLC_SUCCESS;
 
         case DEMUX_GET_TITLE_INFO:
-- 
2.8.2



More information about the vlc-devel mailing list