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

Win32: run on first thread is not needed

parent b4bf94e0
...@@ -53,7 +53,7 @@ typedef struct intf_thread_t ...@@ -53,7 +53,7 @@ typedef struct intf_thread_t
struct intf_thread_t *p_next; /** LibVLC interfaces book keeping */ struct intf_thread_t *p_next; /** LibVLC interfaces book keeping */
/* Thread properties and locks */ /* Thread properties and locks */
#if defined( __APPLE__ ) || defined( WIN32 ) #if defined( __APPLE__ )
bool b_should_run_on_first_thread; bool b_should_run_on_first_thread;
#endif #endif
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
static void* RunInterface( vlc_object_t *p_this ); static void* RunInterface( vlc_object_t *p_this );
#if defined( __APPLE__ ) || defined( WIN32 ) #if defined( __APPLE__ )
static void * MonitorLibVLCDeath( vlc_object_t *p_this ); static void * MonitorLibVLCDeath( vlc_object_t *p_this );
#endif #endif
static int AddIntfCallback( vlc_object_t *, char const *, static int AddIntfCallback( vlc_object_t *, char const *,
...@@ -108,7 +108,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module ) ...@@ -108,7 +108,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
/* Attach interface to LibVLC */ /* Attach interface to LibVLC */
vlc_object_attach( p_intf, p_libvlc ); vlc_object_attach( p_intf, p_libvlc );
#if defined( __APPLE__ ) || defined( WIN32 ) #if defined( __APPLE__ )
p_intf->b_should_run_on_first_thread = false; p_intf->b_should_run_on_first_thread = false;
#endif #endif
...@@ -129,7 +129,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module ) ...@@ -129,7 +129,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
} }
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
#if defined( __APPLE__ ) || defined( WIN32 ) #if defined( __APPLE__ )
/* Hack to get Mac OS X Cocoa runtime running /* Hack to get Mac OS X Cocoa runtime running
* (it needs access to the main thread) */ * (it needs access to the main thread) */
if( p_intf->b_should_run_on_first_thread ) if( p_intf->b_should_run_on_first_thread )
...@@ -225,7 +225,7 @@ static void* RunInterface( vlc_object_t *p_this ) ...@@ -225,7 +225,7 @@ static void* RunInterface( vlc_object_t *p_this )
return NULL; return NULL;
} }
#if defined( __APPLE__ ) || defined( WIN32 ) #if defined( __APPLE__ )
#include "control/libvlc_internal.h" /* libvlc_InternalWait */ #include "control/libvlc_internal.h" /* libvlc_InternalWait */
/** /**
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set. * MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
......
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