Commit b94083f5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: o_sendport not used, remove.

parent b9e88f07
...@@ -66,7 +66,6 @@ unsigned int CocoaKeyToVLC( unichar i_key ); ...@@ -66,7 +66,6 @@ unsigned int CocoaKeyToVLC( unichar i_key );
struct intf_sys_t struct intf_sys_t
{ {
NSAutoreleasePool * o_pool; NSAutoreleasePool * o_pool;
NSPort * o_sendport;
/* the current input */ /* the current input */
input_thread_t * p_input; input_thread_t * p_input;
......
...@@ -105,7 +105,6 @@ int OpenIntf ( vlc_object_t *p_this ) ...@@ -105,7 +105,6 @@ int OpenIntf ( vlc_object_t *p_this )
p_intf->p_sys->o_pool = [[NSAutoreleasePool alloc] init]; p_intf->p_sys->o_pool = [[NSAutoreleasePool alloc] init];
p_intf->p_sys->o_sendport = [[NSPort port] retain];
p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
p_intf->pf_run = Run; p_intf->pf_run = Run;
p_intf->b_should_run_on_first_thread = true; p_intf->b_should_run_on_first_thread = true;
...@@ -124,7 +123,6 @@ void CloseIntf ( vlc_object_t *p_this ) ...@@ -124,7 +123,6 @@ void CloseIntf ( vlc_object_t *p_this )
msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub ); msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
[p_intf->p_sys->o_sendport release];
[p_intf->p_sys->o_pool release]; [p_intf->p_sys->o_pool release];
free( p_intf->p_sys ); free( p_intf->p_sys );
...@@ -706,11 +704,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -706,11 +704,6 @@ static VLCMain *_o_sharedMainInstance = nil;
o_msg_lock = [[NSLock alloc] init]; o_msg_lock = [[NSLock alloc] init];
o_msg_arr = [[NSMutableArray arrayWithCapacity: 200] retain]; o_msg_arr = [[NSMutableArray arrayWithCapacity: 200] retain];
[p_intf->p_sys->o_sendport setDelegate: self];
[[NSRunLoop currentRunLoop]
addPort: p_intf->p_sys->o_sendport
forMode: NSDefaultRunLoopMode];
/* FIXME: don't poll */ /* FIXME: don't poll */
interfaceTimer = [[NSTimer scheduledTimerWithTimeInterval: 0.5 interfaceTimer = [[NSTimer scheduledTimerWithTimeInterval: 0.5
target: self selector: @selector(manageIntf:) target: self selector: @selector(manageIntf:)
......
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