[Android] Do not release player on playlist end
Geoffrey Métais
git at videolan.org
Mon Jun 11 16:18:38 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 11 16:12:45 2018 +0200| [57cb29f3cdd0dc90f4d830969c2f7a0cee843ae0] | committer: Geoffrey Métais
Do not release player on playlist end
> https://code.videolan.org/videolan/vlc-android/commit/57cb29f3cdd0dc90f4d830969c2f7a0cee843ae0
---
vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 708672a01..cb5d35976 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -299,7 +299,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
private fun skipMedia() {
if (currentIndex != nextIndex) next()
- else stop(false)
+ else stop()
}
fun onServiceDestroyed() {
@@ -682,7 +682,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
service.showToast(service.getString(
R.string.invalid_location,
getCurrentMedia()?.getLocation() ?: ""), Toast.LENGTH_SHORT)
- if (nextIndex != currentIndex) next() else stop(true)
+ if (nextIndex != currentIndex) next() else stop()
}
}
service.onMediaPlayerEvent(event)
More information about the Android
mailing list