From 9b60c00180af1850b138ea97bbe025ac068a1382 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Tue, 11 Nov 2025 21:41:24 -0500 Subject: [PATCH] Fix crash (#200) --- .../java/com/github/damontecres/wholphin/util/mpv/MpvPlayer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/damontecres/wholphin/util/mpv/MpvPlayer.kt b/app/src/main/java/com/github/damontecres/wholphin/util/mpv/MpvPlayer.kt index c9fcf472..05d8c450 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/util/mpv/MpvPlayer.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/util/mpv/MpvPlayer.kt @@ -243,8 +243,8 @@ class MpvPlayer( } override fun getPlayWhenReady(): Boolean { - throwIfReleased() if (DEBUG) Timber.v("getPlayWhenReady") + if (isReleased) return false val isPaused = MPVLib.getPropertyBoolean("pause") ?: this.isPaused return !isPaused }