[Android] MediaBrowser: use DoInteract flag (squash)
Thomas Guillem
git at videolan.org
Wed Feb 3 19:32:06 CET 2016
vlc-android | branch: dialog | Thomas Guillem <thomas at gllm.fr> | Wed Feb 3 19:31:51 2016 +0100| [b3d29c1c497c30133a69288857c616d6583cf5b0] | committer: Thomas Guillem
MediaBrowser: use DoInteract flag (squash)
> https://code.videolan.org/videolan/vlc-android/commit/b3d29c1c497c30133a69288857c616d6583cf5b0
---
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
index 37d0d33..770afed 100644
--- a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+++ b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
@@ -184,13 +184,14 @@ public class MediaBrowser {
* so increment ref count in order to don't clean it with the medialist
*/
media.retain();
- media.addOption(IGNORE_LIST_OPTION+mIgnoreList);
- if (!interact)
- media.addOption(":no-interact");
+ media.addOption(IGNORE_LIST_OPTION + mIgnoreList);
+ int flags = Media.Parse.ParseNetwork;
+ if (interact)
+ flags |= Media.Parse.DoInteract;
reset();
mBrowserMediaList = media.subItems();
mBrowserMediaList.setEventListener(mBrowserMediaListEventListener);
- media.parseAsync(Media.Parse.ParseNetwork);
+ media.parseAsync(flags);
mMedia = media;
}
More information about the Android
mailing list