[Android] Fix stream addition to the ML
Nicolas Pomepuy
git at videolan.org
Mon Apr 11 09:50:10 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Apr 11 09:41:55 2022 +0200| [cf515d3a1ad7cdb8bc0dac2093b336a64cc61e0a] | committer: Duncan McNamara
Fix stream addition to the ML
Fixes #2474
> https://code.videolan.org/videolan/vlc-android/commit/cf515d3a1ad7cdb8bc0dac2093b336a64cc61e0a
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 6c8711f71..b18258c7c 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -1040,7 +1040,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if (internalMedia != null && internalMedia.id != 0L) {
id = internalMedia.id
} else {
- internalMedia = if (mw.type == MediaWrapper.TYPE_STREAM) {
+ internalMedia = if (mw.type == MediaWrapper.TYPE_STREAM || isSchemeStreaming(mw.uri.scheme)) {
medialibrary.addStream(entryUrl ?: mw.uri.toString(), mw.title).also {
entryUrl = null
}
More information about the Android
mailing list