Thanks a lot to ipkiss for providing the bisect builds and geal for his help.
VLC_COMMON_MEMBERS
/* Thread properties and locks */
VLC_COMMON_MEMBERS
/* Thread properties and locks */
+#if defined( __APPLE__ ) || defined( WIN32 )
bool b_should_run_on_first_thread;
#endif
bool b_should_run_on_first_thread;
#endif
Dialogs::instance( p_intf );
ThemeRepository::instance( p_intf );
Dialogs::instance( p_intf );
ThemeRepository::instance( p_intf );
+#ifdef WIN32
+ p_intf->b_should_run_on_first_thread = true;
+#endif
+
* Local prototypes
*****************************************************************************/
static void* RunInterface( vlc_object_t *p_this );
* Local prototypes
*****************************************************************************/
static void* RunInterface( vlc_object_t *p_this );
+#if defined( __APPLE__ ) || defined( WIN32 )
static void * MonitorLibVLCDeath( vlc_object_t *p_this );
#endif
static int AddIntfCallback( vlc_object_t *, char const *,
static void * MonitorLibVLCDeath( vlc_object_t *p_this );
#endif
static int AddIntfCallback( vlc_object_t *, char const *,
if( !p_intf )
return NULL;
p_intf->b_interaction = false;
if( !p_intf )
return NULL;
p_intf->b_interaction = false;
+#if defined( __APPLE__ ) || defined( WIN32 )
p_intf->b_should_run_on_first_thread = false;
#endif
p_intf->b_should_run_on_first_thread = false;
#endif
*/
int intf_RunThread( intf_thread_t *p_intf )
{
*/
int intf_RunThread( intf_thread_t *p_intf )
{
+#if defined( __APPLE__ ) || defined( WIN32 )
/* Hack to get Mac OS X Cocoa runtime running
* (it needs access to the main thread) */
if( p_intf->b_should_run_on_first_thread )
/* Hack to get Mac OS X Cocoa runtime running
* (it needs access to the main thread) */
if( p_intf->b_should_run_on_first_thread )
+#if defined( __APPLE__ ) || defined( WIN32 )
/*****************************************************************************
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
*****************************************************************************/
/*****************************************************************************
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
*****************************************************************************/