Commit a11c642f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

macosx: run on first thread directly, like already done by Qt4

parent 72d46b6b
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <vlc_aout_intf.h> #include <vlc_aout_intf.h>
#include <vlc_vout_window.h> #include <vlc_vout_window.h>
#include <unistd.h> /* execl() */ #include <unistd.h> /* execl() */
#include "../../../lib/libvlc_internal.h"
#import "CompatibilityFixes.h" #import "CompatibilityFixes.h"
#import "intf.h" #import "intf.h"
...@@ -107,10 +108,11 @@ int OpenIntf ( vlc_object_t *p_this ) ...@@ -107,10 +108,11 @@ int OpenIntf ( vlc_object_t *p_this )
/* subscribe to LibVLCCore's messages */ /* subscribe to LibVLCCore's messages */
vlc_Subscribe( &p_intf->p_sys->sub, MsgCallback, NULL ); vlc_Subscribe( &p_intf->p_sys->sub, MsgCallback, NULL );
p_intf->pf_run = Run;
p_intf->b_should_run_on_first_thread = true;
[o_pool release]; [o_pool release];
libvlc_SetExitHandler( p_intf->p_libvlc, vlc_object_kill, p_intf );
Run( p_intf );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <vlc_input.h> #include <vlc_input.h>
#import <vlc_interface.h> #import <vlc_interface.h>
#include "../../../lib/libvlc_internal.h"
#import <intf.h> #import <intf.h>
...@@ -63,8 +64,8 @@ int OpenIntf ( vlc_object_t *p_this ) ...@@ -63,8 +64,8 @@ int OpenIntf ( vlc_object_t *p_this )
memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) ); memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) );
p_intf->pf_run = Run; libvlc_SetExitHandler( p_intf->p_libvlc, vlc_object_kill, p_intf );
p_intf->b_should_run_on_first_thread = true; Run( p_intf );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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