#include <vlc_keys.h>
#include <vlc_input.h>
+#import <vlc_interface.h>
#import <intf.h>
intf_thread_t *p_intf = user_data;
- vlc_object_lock ( p_intf );
+ vlc_mutex_init( &p_intf->p_sys->lock );
+ vlc_cond_init( &p_intf->p_sys->wait );
+
+ vlc_mutex_lock ( &p_intf->p_sys->lock );
while( vlc_object_alive( p_intf ) )
- vlc_object_wait( p_intf );
- vlc_object_unlock( p_intf );
+ vlc_cond_wait( &p_intf->p_sys->wait, &p_intf->p_sys->lock );
+ vlc_mutex_unlock( &p_intf->p_sys->lock );
+
+ vlc_mutex_destroy( &p_intf->p_sys->lock );
+ vlc_cond_destroy( &p_intf->p_sys->wait );
- msg_Dbg( p_intf, "Killing the Mac OS X module" );
+ msg_Dbg( p_intf, "Killing the Minimal Mac OS X module" );
/* We are dead, terminate */
[NSApp terminate: nil];