[Android] Fix delay inverted with the new UI
Nicolas Pomepuy
git at videolan.org
Tue Jul 7 13:16:03 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul 6 13:01:32 2020 +0200| [ae8307b12ea9a53d9351688caab0698aef1ee6f1] | committer: Nicolas Pomepuy
Fix delay inverted with the new UI
Fixes #1404
> https://code.videolan.org/videolan/vlc-android/commit/ae8307b12ea9a53d9351688caab0698aef1ee6f1
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
index 941ebd742..067b4345d 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoDelayDelegate.kt
@@ -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())
}
More information about the Android
mailing list