]> git.sesse.net Git - vlc/commitdiff
* improved previous b_autoplay implementation
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 9 Dec 2006 19:59:45 +0000 (19:59 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 9 Dec 2006 19:59:45 +0000 (19:59 +0000)
modules/gui/macosx/open.h
modules/gui/macosx/open.m

index d51fac6835aa0bf1c0fd4fca1d7f93d8bde1fb04..d71d4d6aba5686745a33029ff8373c6aed85cae2 100644 (file)
@@ -97,7 +97,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
     IBOutlet id o_output_ckbox;
     IBOutlet id o_sout_options;
     
-    BOOL b_autoplay;
+    BOOL b_autoplay;
 }
 
 + (VLCOpen *)sharedInstance;
index 495c1bc1b86e64ae894ca0e5d39d7cab1249ee45..002c7ef9b29b5756971268adf26b7e2dbb7733a1 100644 (file)
@@ -308,7 +308,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
     int i_result;
     intf_thread_t * p_intf = VLCIntf;
 
-    b_autoplay = (BOOL *)config_GetInt( VLCIntf, "macosx-autoplay" );
+    b_autoplay = config_GetInt( VLCIntf, "macosx-autoplay" );
 
     [o_tabview selectTabViewItemAtIndex: i_type];
     [o_file_sub_ckbox setState: NSOffState];
@@ -738,7 +738,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
 {
     NSOpenPanel *o_open_panel = [NSOpenPanel openPanel];
     int i;
-    b_autoplay = (BOOL *)config_GetInt( VLCIntf, "macosx-autoplay" );
+    b_autoplay = config_GetInt( VLCIntf, "macosx-autoplay" );
     
     [o_open_panel setAllowsMultipleSelection: YES];
     [o_open_panel setCanChooseDirectories: YES];