mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Fix crash (#200)
This commit is contained in:
parent
96c856e8fc
commit
9b60c00180
1 changed files with 1 additions and 1 deletions
|
|
@ -243,8 +243,8 @@ class MpvPlayer(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getPlayWhenReady(): Boolean {
|
override fun getPlayWhenReady(): Boolean {
|
||||||
throwIfReleased()
|
|
||||||
if (DEBUG) Timber.v("getPlayWhenReady")
|
if (DEBUG) Timber.v("getPlayWhenReady")
|
||||||
|
if (isReleased) return false
|
||||||
val isPaused = MPVLib.getPropertyBoolean("pause") ?: this.isPaused
|
val isPaused = MPVLib.getPropertyBoolean("pause") ?: this.isPaused
|
||||||
return !isPaused
|
return !isPaused
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue