* 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 d51fac6..d71d4d6 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 495c1bc..002c7ef 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];