Commit 95b15d99 authored by bjustin's avatar bjustin Committed by Felix Paul Kühne

VLCLibrary: store libvlc params in NSUserDefaults

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <>
parent 9a5a66fe
......@@ -53,7 +53,7 @@ static VLCLibrary * sharedLibrary = nil;
if (self = [super init])
NSArray *vlcParams = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"VLCParams"];
NSArray *vlcParams = [[NSUserDefaults standardUserDefaults] objectForKey:@"VLCParams"];
if (!vlcParams) {
NSMutableArray *defaultParams = [NSMutableArray array];
[defaultParams addObject:@"--play-and-pause"]; // We want every movie to pause instead of stopping at eof
......@@ -71,6 +71,10 @@ static VLCLibrary * sharedLibrary = nil;
[defaultParams addObject:@"--text-renderer=quartztext"]; // our CoreText-based renderer
[defaultParams addObject:@"--extraintf=macosx_dialog_provider"]; // Some extra dialog (login, progress) may come up from here
[[NSUserDefaults standardUserDefaults] setObject:defaultParams forKey:@"VLCParams"];
[[NSUserDefaults standardUserDefaults] synchronize];
vlcParams = defaultParams;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment