Show
Ignore:
Timestamp:
07/24/08 21:00:26 (1 month ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1216926026 +0300
git-parent:

[4794bb1e1b0c9fec3cbf24b84421a67e081b680f]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1216926026 +0300
Message:

Remove the main thread hack on platforms with non-idiotic toolkits

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/interface/interface.c

    r4d654a4 r36ca011  
    5151 *****************************************************************************/ 
    5252static void RunInterface( intf_thread_t *p_intf ); 
     53#ifdef __APPLE__ 
    5354static void MonitorLibVLCDeath( intf_thread_t *p_intf ); 
    54  
     55#endif 
    5556static int AddIntfCallback( vlc_object_t *, char const *, 
    5657                            vlc_value_t , vlc_value_t , void * ); 
     
    9697        return NULL; 
    9798    p_intf->b_interaction = false; 
     99#ifdef __APPLE__ 
    98100    p_intf->b_should_run_on_first_thread = false; 
     101#endif 
    99102 
    100103    /* Choose the best module */ 
     
    137140int intf_RunThread( intf_thread_t *p_intf ) 
    138141{ 
     142#ifdef __APPLE__ 
    139143    /* Hack to get Mac OS X Cocoa runtime running 
    140144     * (it needs access to the main thread) */ 
     
    159163        return VLC_SUCCESS; 
    160164    } 
    161      
     165#endif 
    162166    /* Run the interface in a separate thread */ 
    163167    if( vlc_thread_create( p_intf, "interface", RunInterface, 
     
    255259} 
    256260 
     261#ifdef __APPLE__ 
    257262/***************************************************************************** 
    258263 * MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set. 
     
    284289    } 
    285290    vlc_list_release( p_list ); 
    286  
    287 
     291
     292#endif 
    288293 
    289294static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,