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){
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;