mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
Fix reversed logic
This commit is contained in:
parent
fbf77b9376
commit
d6c9b236ef
1 changed files with 3 additions and 2 deletions
|
|
@ -33,8 +33,9 @@ class PlayerFactory
|
||||||
private set
|
private set
|
||||||
|
|
||||||
fun createVideoPlayer(): Player {
|
fun createVideoPlayer(): Player {
|
||||||
if (currentPlayer?.isReleased == true) {
|
if (currentPlayer?.isReleased == false) {
|
||||||
throw IllegalStateException("Player was not released before trying to create a new one!")
|
Timber.w("Player was not released before trying to create a new one!")
|
||||||
|
currentPlayer?.release()
|
||||||
}
|
}
|
||||||
|
|
||||||
val extensions =
|
val extensions =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue