Fix video/audio offset changing issues because of remapping in HLS input

This commit is contained in:
Thulinma 2023-03-29 03:21:47 +02:00
parent 1ec92b35a0
commit 0ab9b2b085

View file

@ -1308,6 +1308,7 @@ namespace Mist{
if (entry.timeOffset){ if (entry.timeOffset){
HIGH_MSG("Setting time offset of this TS segment to %" PRId64, entry.timeOffset); HIGH_MSG("Setting time offset of this TS segment to %" PRId64, entry.timeOffset);
plsTimeOffset[currentPlaylist] = entry.timeOffset; plsTimeOffset[currentPlaylist] = entry.timeOffset;
allowRemap = false;
} }
} }
@ -1690,6 +1691,7 @@ namespace Mist{
// If we have an offset, load it // If we have an offset, load it
if (ntry.timeOffset){ if (ntry.timeOffset){
plsTimeOffset[currentPlaylist] = ntry.timeOffset; plsTimeOffset[currentPlaylist] = ntry.timeOffset;
allowRemap = false;
// Else allow of the offset to be set by getPacketTime // Else allow of the offset to be set by getPacketTime
}else{ }else{
nUTC = ntry.mUTC; nUTC = ntry.mUTC;