[Android] Fix equalizer crash

Nicolas Pomepuy git at videolan.org
Tue Feb 6 10:45:04 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Feb  6 11:33:56 2024 +0100| [9f802d7dcb156341feb1f79e350d422ce22c6395] | committer: Nicolas Pomepuy

Fix equalizer crash

Fixes #3030

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index a189ae8cc8..efa654cdc5 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1801,7 +1801,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
         val renderer = RendererLiveData()
         val restartPlayer = LiveEvent<Boolean>()
         val headSetDetection = LiveEvent<Boolean>()
-        val equalizer = LiveEvent<MediaPlayer.Equalizer>()
+        val equalizer = LiveEvent<MediaPlayer.Equalizer?>()
 
         private const val SHOW_TOAST = "show_toast"
         private const val END_MEDIASESSION = "end_mediasession"



More information about the Android mailing list