Commit 644bd843 authored by Felix Paul Kühne's avatar Felix Paul Kühne

legacy OS X intf: removed nslog-based debug

parent 09560b2b
...@@ -1602,8 +1602,6 @@ static void manage_cleanup( void * args ) ...@@ -1602,8 +1602,6 @@ static void manage_cleanup( void * args )
} }
pthread_cleanup_pop(1); pthread_cleanup_pop(1);
msg_Dbg( p_intf, "OS X Manage thread terminating" );
} }
- (void)manageVolumeSlider - (void)manageVolumeSlider
......
...@@ -358,7 +358,8 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na ...@@ -358,7 +358,8 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
} }
else if( p_item->ppsz_list[i] ) else if( p_item->ppsz_list[i] )
mi = [[NSMenuItem alloc] initWithTitle: [NSString stringWithUTF8String: p_item->ppsz_list[i]] action:NULL keyEquivalent: @""]; mi = [[NSMenuItem alloc] initWithTitle: [NSString stringWithUTF8String: p_item->ppsz_list[i]] action:NULL keyEquivalent: @""];
else NSLog( @"item %d of pref %s failed to be created", i, name); else
msg_Err( p_intf, "item %d of pref %s failed to be created", i, name );
[mi setRepresentedObject:[NSString stringWithUTF8String: p_item->ppsz_list[i]]]; [mi setRepresentedObject:[NSString stringWithUTF8String: p_item->ppsz_list[i]]];
[[object menu] addItem: [mi autorelease]]; [[object menu] addItem: [mi autorelease]];
if( p_item->value.psz && !strcmp( p_item->value.psz, p_item->ppsz_list[i] ) ) if( p_item->value.psz && !strcmp( p_item->value.psz, p_item->ppsz_list[i] ) )
...@@ -384,7 +385,8 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na ...@@ -384,7 +385,8 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
mi = [[NSMenuItem alloc] initWithTitle: _NS( p_item->ppsz_list_text[i] ) action:NULL keyEquivalent: @""]; mi = [[NSMenuItem alloc] initWithTitle: _NS( p_item->ppsz_list_text[i] ) action:NULL keyEquivalent: @""];
else if( p_item->pi_list[i] ) else if( p_item->pi_list[i] )
mi = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: @"%d", p_item->pi_list[i]] action:NULL keyEquivalent: @""]; mi = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: @"%d", p_item->pi_list[i]] action:NULL keyEquivalent: @""];
else NSLog( @"item %d of pref %s failed to be created", i, name); else
msg_Err( p_intf, "item %d of pref %s failed to be created", i, name);
[mi setRepresentedObject:[NSNumber numberWithInt: p_item->pi_list[i]]]; [mi setRepresentedObject:[NSNumber numberWithInt: p_item->pi_list[i]]];
[[object menu] addItem: [mi autorelease]]; [[object menu] addItem: [mi autorelease]];
if( p_item->value.i == p_item->pi_list[i] ) if( p_item->value.i == p_item->pi_list[i] )
...@@ -406,7 +408,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na ...@@ -406,7 +408,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
if( !p_item ||!p_list ) if( !p_item ||!p_list )
{ {
if( p_list ) module_list_free(p_list); if( p_list ) module_list_free(p_list);
NSLog( @"serious problem, item or list not found" ); msg_Err( p_intf, "serious problem, item or list not found" );
return; return;
} }
...@@ -825,7 +827,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -825,7 +827,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
{ {
config_PutInt( p_intf, "audio", [o_audio_enable_ckb state] ); config_PutInt( p_intf, "audio", [o_audio_enable_ckb state] );
config_PutInt( p_intf, "volume", ([o_audio_vol_sld intValue] * 2.56)); config_PutInt( p_intf, "volume", ([o_audio_vol_sld intValue] * 2.56));
NSLog( @"slider=%i, pref=%i", [o_audio_vol_sld intValue], config_GetInt( p_intf, "volume" ));
config_PutInt( p_intf, "spdif", [o_audio_spdif_ckb state] ); config_PutInt( p_intf, "spdif", [o_audio_spdif_ckb state] );
SaveIntList( o_audio_dolby_pop, "force-dolby-surround" ); SaveIntList( o_audio_dolby_pop, "force-dolby-surround" );
......
...@@ -122,10 +122,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -122,10 +122,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
- (BOOL)windowContainsEmbedded: (id)o_window - (BOOL)windowContainsEmbedded: (id)o_window
{ {
/* if( ![[o_window className] isEqualToString: @"VLCVoutWindow"] )
{
NSLog( @"We were not given a VLCVoutWindow" );
}*/
return ([self viewForWindow: o_window] == nil ? NO : YES ); return ([self viewForWindow: o_window] == nil ? NO : YES );
} }
...@@ -510,7 +506,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -510,7 +506,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
val.i_int |= (int)CocoaKeyToVLC( key ); val.i_int |= (int)CocoaKeyToVLC( key );
var_Set( p_vout->p_libvlc, "key-pressed", val ); var_Set( p_vout->p_libvlc, "key-pressed", val );
} }
else NSLog( @"Could not send keyevent to VLC core" ); else msg_Warn( p_vout, "could not send keyevent to VLC core" );
} }
else else
[super keyDown: o_event]; [super keyDown: o_event];
......
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