Fix mpv player crashing on exiting the player when the file has finished playing (#251)
This commit is contained in:
parent
8c17259072
commit
6e5e3f0788
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class MPVPlayer(
|
|||
when (property) {
|
||||
"eof-reached" -> {
|
||||
if (value && isPlayerReady) {
|
||||
if (currentIndex < (internalMediaItems.size)) {
|
||||
if (currentIndex < (internalMediaItems.size - 1)) {
|
||||
currentIndex += 1
|
||||
prepareMediaItem(currentIndex)
|
||||
play()
|
||||
|
|
Loading…
Reference in a new issue