From 0ab9b2b085bddf39d0b29c7781a3786137881ca8 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 29 Mar 2023 03:21:47 +0200 Subject: [PATCH] Fix video/audio offset changing issues because of remapping in HLS input --- src/input/input_hls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/input_hls.cpp b/src/input/input_hls.cpp index e56003ab..873485d3 100644 --- a/src/input/input_hls.cpp +++ b/src/input/input_hls.cpp @@ -1308,6 +1308,7 @@ namespace Mist{ if (entry.timeOffset){ HIGH_MSG("Setting time offset of this TS segment to %" PRId64, entry.timeOffset); plsTimeOffset[currentPlaylist] = entry.timeOffset; + allowRemap = false; } } @@ -1690,6 +1691,7 @@ namespace Mist{ // If we have an offset, load it if (ntry.timeOffset){ plsTimeOffset[currentPlaylist] = ntry.timeOffset; + allowRemap = false; // Else allow of the offset to be set by getPacketTime }else{ nUTC = ntry.mUTC;