[PATCH 2/2] adaptive: Always set timestamps_offset on start

Jérémy VIGNELLES jeremy.vignelles at dev3i.fr
Mon Sep 23 10:43:04 CEST 2019


This effectively fixes https://trac.videolan.org/vlc/ticket/21863
---
 modules/demux/adaptive/plumbing/FakeESOut.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 52a71e8..ac49c2f 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -307,8 +307,7 @@ void FakeESOut::checkTimestampsStart(mtime_t i_start)
     vlc_mutex_lock(&lock);
     if( !timestamps_check_done )
     {
-        if( i_start < CLOCK_FREQ ) /* Starts 0 */
-            timestamps_offset = timestamps_expected;
+        timestamps_offset = timestamps_expected - i_start;
         timestamps_check_done = true;
     }
     vlc_mutex_unlock(&lock);
-- 
2.23.0.windows.1



More information about the vlc-devel mailing list