[Android] LibVLC: MediaBrowser: add NoSlavesAutodetect flag

Thomas Guillem git at videolan.org
Mon Jun 27 17:30:41 CEST 2016


vlc-android | branch: 2.0.x | Thomas Guillem <thomas at gllm.fr> | Mon Jun 27 16:57:16 2016 +0200| [3fd7a50313764ebcc1186008e4ef62b82c284574] | committer: Geoffrey Métais

LibVLC: MediaBrowser: add NoSlavesAutodetect flag

(cherry picked from commit f496561b36518261848cb7f0b7b6b28b2e2c6f6a)

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

 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