[Android] Do not release player on playlist end

Geoffrey Métais git at videolan.org
Mon Jun 11 16:19:42 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 11 16:19:17 2018 +0200| [a04e53d0edc78522c3d2fdb32ac690dc82e0bcbe] | committer: Geoffrey Métais

Do not release player on playlist end

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

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

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index d5dd161bb..905b1b3d9 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -683,7 +683,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                     service.showToast(service.getString(
                             R.string.invalid_location,
                             getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT)
-                    if (currentIndex != nextIndex) next() else stop(true)
+                    if (currentIndex != nextIndex) next() else stop()
                 }
             }
             service.onMediaPlayerEvent(event)



More information about the Android mailing list