Skip to content
Snippets Groups Projects
Commit f496561b authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: MediaBrowser: add NoSlavesAutodetect flag

parent e71d7d88
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment