[Android] Fix crash on the fast play

Nicolas Pomepuy git at videolan.org
Mon Mar 17 06:05:53 UTC 2025


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Mar 14 10:28:15 2025 +0100| [ba3e9e620b65958460e3ebca011db31560ee16f2] | committer: Nicolas Pomepuy

Fix crash on the fast play

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

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
index 34d474c934..9506a19837 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
@@ -195,7 +195,7 @@ class VideoTouchDelegate(private val player: VideoPlayerActivity,
                         // Mouse events for the core
                         player.sendMouseEvent(MotionEvent.ACTION_DOWN, xTouch, yTouch)
                         val fastPlayRunnable = Runnable {
-                            if (touchAction == TOUCH_NONE) {
+                            if (touchAction == TOUCH_NONE && player.service != null) {
                                 savedRate = player.service!!.rate
                                 player.service?.setRate(org.videolan.tools.Settings.fastplaySpeed, false)
                                 showFastPlay()



More information about the Android mailing list