[Android] PlaylistManager: Parse media in IO threadpool
Geoffrey Métais
git at videolan.org
Fri Feb 1 14:01:06 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 1 13:59:33 2019 +0100| [a305f3afcfab70fa7fdee5c6b740f710d5ec084e] | committer: Geoffrey Métais
PlaylistManager: Parse media in IO threadpool
> https://code.videolan.org/videolan/vlc-android/commit/a305f3afcfab70fa7fdee5c6b740f710d5ec084e
---
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 5b99bcaf2..1ec658acd 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -582,7 +582,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
mediaList.remove(index)
for (i in ml.count - 1 downTo 0) {
val child = ml.getMediaAt(i)
- child.parse()
+ withContext(Dispatchers.IO) { child.parse() }
mediaList.insert(index, MediaWrapper(child))
child.release()
}
More information about the Android
mailing list