Skip to content
Snippets Groups Projects
Commit ae8307b1 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix delay inverted with the new UI

Fixes #1404
parent 6234c038
No related branches found
No related tags found
1 merge request!6533.3 fixes
Pipeline #19958 passed with stage
in 17 minutes and 17 seconds
......@@ -254,7 +254,7 @@ class VideoDelayDelegate(private val player: VideoPlayerActivity) : View.OnClick
var hasChanged = false
if (delayValues.start != -1L && delayValues.stop != -1L) {
val oldDelay = if (playbackSetting == IPlaybackSettingsController.DelayState.SUBS) service.spuDelay else service.audioDelay
delayAudioOrSpu(delayValues.stop * 1000 - delayValues.start * 1000, fromCustom = true, delayState = playbackSetting)
delayAudioOrSpu(delayValues.start * 1000 - delayValues.stop * 1000, fromCustom = true, delayState = playbackSetting)
hasChanged = oldDelay != if (playbackSetting == IPlaybackSettingsController.DelayState.SUBS) service.spuDelay else service.audioDelay
service.playlistManager.delayValue.postValue(DelayValues())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment