[Android] Check mrl with new medialibrary
Geoffrey Métais
git at videolan.org
Tue Nov 29 12:04:44 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Nov 25 16:51:01 2016 +0100| [21f2277a6f38eada448c36bdaccd3a6e255e52da] | committer: Geoffrey Métais
Check mrl with new medialibrary
> https://code.videolan.org/videolan/vlc-android/commit/21f2277a6f38eada448c36bdaccd3a6e255e52da
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 784f0e8..f3c8b47 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1651,12 +1651,11 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
*/
@MainThread
public void loadLocations(List<String> mediaPathList, int position) {
- ArrayList<MediaWrapper> mediaList = new ArrayList<MediaWrapper>();
- MediaDatabase db = MediaDatabase.getInstance();
+ ArrayList<MediaWrapper> mediaList = new ArrayList<>();
for (int i = 0; i < mediaPathList.size(); i++) {
String location = mediaPathList.get(i);
- MediaWrapper mediaWrapper = db.getMedia(Uri.parse(location));
+ MediaWrapper mediaWrapper = mMedialibrary.getMedia(location);
if (mediaWrapper == null) {
if (!validateLocation(location)) {
Log.w(TAG, "Invalid location " + location);
More information about the Android
mailing list