[Android] LibVLC: MediaBrowser: add NoSlavesAutodetect flag

Thomas Guillem git at videolan.org
Mon Jun 27 16:59:44 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 27 16:57:16 2016 +0200| [f496561b36518261848cb7f0b7b6b28b2e2c6f6a] | committer: Thomas Guillem

LibVLC: MediaBrowser: add NoSlavesAutodetect flag

> https://code.videolan.org/videolan/vlc-android/commit/f496561b36518261848cb7f0b7b6b28b2e2c6f6a
---

 libvlc/src/org/videolan/libvlc/util/MediaBrowser.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
index 7bc8a7f..1ca2c11 100644
--- a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+++ b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
@@ -48,6 +48,8 @@ public class MediaBrowser {
     public static class Flag {
         /** If this flag is set, browse() could fire up dialogs */
         public final static int Interact = 1;
+        /** If this flag is set, slaves won't be attached to medias but will be added as a media. */
+        public final static int NoSlavesAutodetect = 1 << 1;
     }
 
     /**
@@ -194,6 +196,8 @@ public class MediaBrowser {
          */
         media.retain();
         media.addOption(IGNORE_LIST_OPTION + mIgnoreList);
+        if ((flags & Flag.NoSlavesAutodetect) != 0)
+            media.addOption(":no-sub-autodetect-file");
         int mediaFlags = Media.Parse.ParseNetwork;
         if ((flags & Flag.Interact) != 0)
             mediaFlags |= Media.Parse.DoInteract;



More information about the Android mailing list