Changeset 36aca393c55082aab87d0564e225305da24e6e52

Show
Ignore:
Timestamp:
14/09/08 10:14:24 (3 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1221380064 +0300
git-parent:

[872779fbce6fe19c7d66d845c709e99defcbffbb]

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

Remove intf_ShouldDie

libvlc kills the interfaces when it dies anyway.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_interface.h

    r88f2243 r36aca39  
    109109VLC_EXPORT( void,              intf_StopThread, ( intf_thread_t * ) ); 
    110110 
    111 /* If the interface is in the main thread, it should listen both to 
    112  * p_intf->b_die and p_libvlc->b_die */ 
    113 #define intf_ShouldDie( p_intf ) (p_intf->b_die || p_intf->p_libvlc->b_die ) 
    114  
    115111#define intf_Eject(a,b) __intf_Eject(VLC_OBJECT(a),b) 
    116112VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) ); 
  • modules/control/gestures.c

    r1cfa877 r36aca39  
    183183 
    184184    /* Main loop */ 
    185     while( !intf_ShouldDie( p_intf ) ) 
     185    while( vlc_object_alive( p_intf ) ) 
    186186    { 
    187187        vlc_mutex_lock( &p_intf->change_lock ); 
     
    462462    char *psz_button; 
    463463    /* we might need some locking here */ 
    464     if( !intf_ShouldDie( p_intf ) ) 
     464    if( vlc_object_alive( p_intf ) ) 
    465465    { 
    466466        /* p_intf->change_lock locking strategy: 
  • modules/control/lirc.c

    r91f0104 r36aca39  
    176176            return 0; 
    177177 
    178         while( !intf_ShouldDie( p_intf ) 
     178        while( vlc_object_alive( p_intf ) 
    179179                && (lirc_code2char( p_intf->p_sys->config, code, &c ) == 0) 
    180180                && (c != NULL) ) 
  • modules/control/netsync.c

    r872779f r36aca39  
    151151    vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_INPUT ); 
    152152 
    153     while( !intf_ShouldDie( p_intf ) ) 
     153    while( vlc_object_alive( p_intf ) ) 
    154154    { 
    155155        /* Update the input */ 
  • modules/control/rc.c

    r1cfa877 r36aca39  
    480480#endif 
    481481 
    482     while( !intf_ShouldDie( p_intf ) ) 
     482    while( vlc_object_alive( p_intf ) ) 
    483483    { 
    484484        char *psz_cmd, *psz_arg; 
     
    20512051                                INTF_IDLE_SLEEP/1000 ) == WAIT_OBJECT_0 ) 
    20522052    { 
    2053         while( !intf_ShouldDie( p_intf ) && *pi_size < MAX_LINE_LENGTH && 
     2053        while( vlc_object_alive( p_intf ) && *pi_size < MAX_LINE_LENGTH && 
    20542054               ReadConsoleInput( p_intf->p_sys->hConsoleIn, &input_record, 
    20552055                                 1, &i_dw ) ) 
     
    21212121#endif 
    21222122 
    2123     while( !intf_ShouldDie( p_intf ) && *pi_size < MAX_LINE_LENGTH && 
     2123    while( vlc_object_alive( p_intf ) && *pi_size < MAX_LINE_LENGTH && 
    21242124           (i_read = net_Read( p_intf, p_intf->p_sys->i_socket == -1 ? 
    21252125                       0 /*STDIN_FILENO*/ : p_intf->p_sys->i_socket, NULL, 
  • modules/control/showintf.c

    r1cfa877 r36aca39  
    122122 
    123123    /* Main loop */ 
    124     while( !intf_ShouldDie( p_intf ) ) 
     124    while( vlc_object_alive( p_intf ) ) 
    125125    { 
    126126        vlc_mutex_lock( &p_intf->change_lock ); 
     
    180180static int InitThread( intf_thread_t * p_intf ) 
    181181{ 
    182     if( !intf_ShouldDie( p_intf ) ) 
     182    if( vlc_object_alive( p_intf ) ) 
    183183    { 
    184184        vlc_mutex_lock( &p_intf->change_lock ); 
  • modules/gui/beos/Interface.cpp

    r3561b9b r36aca39  
    121121static void Run( intf_thread_t *p_intf ) 
    122122{ 
    123     while( !intf_ShouldDie( p_intf ) ) 
     123    while( vlc_object_alive( p_intf ) ) 
    124124    { 
    125125        p_intf->p_sys->p_window->UpdateInterface(); 
  • modules/gui/fbosd.c

    r1cfa877 r36aca39  
    12731273    int canc = vlc_savecancel(); 
    12741274 
    1275     while( !intf_ShouldDie( p_intf ) ) 
     1275    while( vlc_object_alive( p_intf ) ) 
    12761276    { 
    12771277        int i; 
  • modules/gui/ncurses.c

    r1cfa877 r36aca39  
    405405    var_AddCallback( p_playlist, "item-change", PlaylistChanged, p_intf ); 
    406406 
    407     while( !intf_ShouldDie( p_intf ) ) 
     407    while( vlc_object_alive( p_intf ) ) 
    408408    { 
    409409        msleep( INTF_IDLE_SLEEP ); 
  • modules/gui/pda/pda.c

    r1cfa877 r36aca39  
    318318#ifdef NEED_GTK2_MAIN 
    319319    msg_Dbg( p_intf, "Manage GTK keyboard events using threads" ); 
    320     while( !intf_ShouldDie( p_intf ) ) 
     320    while( vlc_object_alive( p_intf ) ) 
    321321    { 
    322322        Manage( p_intf ); 
     
    517517        vlc_object_unlock( p_input ); 
    518518    } 
    519     else if( p_intf->p_sys->b_playing && !intf_ShouldDie( p_intf ) ) 
     519    else if( p_intf->p_sys->b_playing && vlc_object_alive( p_intf ) ) 
    520520    { 
    521521        GtkModeManage( p_intf ); 
     
    524524 
    525525#ifndef NEED_GTK2_MAIN 
    526     if( intf_ShouldDie( p_intf ) ) 
     526    if( !vlc_object_alive( p_intf ) ) 
    527527    { 
    528528        vlc_mutex_unlock( &p_intf->change_lock ); 
  • modules/gui/qt4/main_interface.cpp

    rf4f357d r36aca39  
    925925{ 
    926926    /* No event for dying */ 
    927     if( intf_ShouldDie( p_intf ) ) 
     927    if( !vlc_object_alive( p_intf ) ) 
    928928    { 
    929929        QApplication::closeAllWindows(); 
  • modules/gui/wince/timer.cpp

    rcc51620 r36aca39  
    211211        } 
    212212    } 
    213     else if( p_intf->p_sys->b_playing && !intf_ShouldDie( p_intf ) ) 
     213    else if( p_intf->p_sys->b_playing && vlc_object_alive( p_intf ) ) 
    214214    { 
    215215        p_intf->p_sys->b_playing = 0; 
     
    218218    } 
    219219 
    220     if( intf_ShouldDie( p_intf ) ) 
     220    if( !vlc_object_alive( p_intf ) ) 
    221221    { 
    222222        vlc_mutex_unlock( &p_intf->change_lock ); 
  • modules/gui/wxwidgets/timer.cpp

    r2c595f3 r36aca39  
    9797    } 
    9898 
    99     if( intf_ShouldDie( p_intf ) ) 
     99    if( !vlc_object_alive( p_intf ) ) 
    100100    { 
    101101        vlc_mutex_unlock( &p_intf->change_lock );