[Android] ABRepeat: disable fast seek

Duncan McNamara git at videolan.org
Thu Jun 13 13:20:59 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Jun 12 15:52:57 2024 +0200| [686d031bf3c2b427de59030456915eeb9acb2a96] | committer: Nicolas Pomepuy

ABRepeat: disable fast seek

Fixes #3056

> https://code.videolan.org/videolan/vlc-android/commit/686d031bf3c2b427de59030456915eeb9acb2a96
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 8917a4ebc0..8dfaad78e5 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -1175,8 +1175,8 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 }
                 MediaPlayer.Event.TimeChanged -> {
                     abRepeat.value?.let {
-                        if (it.stop != -1L && player.getCurrentTime() > it.stop) service.setTime(it.start)
-                        if (player.getCurrentTime() < it.start) service.setTime(it.start)
+                        if (it.stop != -1L && player.getCurrentTime() > it.stop) service.setTime(it.start, false)
+                        if (player.getCurrentTime() < it.start) service.setTime(it.start, false)
                     }
                     if (player.getCurrentTime() % 10 == 0L) savePosition()
                     val now = System.currentTimeMillis()



More information about the Android mailing list