Show
Ignore:
Timestamp:
05/07/08 13:55:16 (5 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1215258916 +0300
git-parent:

[d10dffca3516b7650fa79c94947bfd18ac6a6fa0]

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

modules: use vlc_object_alive()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/asf/asf.c

    rccb8128 r00b9584  
    151151        int i_result; 
    152152 
    153         if( p_demux->b_die
     153        if( !vlc_object_alive (p_demux)
    154154            break; 
    155155#if 0 
  • modules/demux/avi/avi.c

    r37a2578 r00b9584  
    978978                    if( !(++i_loop_count % 1024) ) 
    979979                    { 
    980                         if( p_demux->b_die ) return -1; 
     980                        if( !vlc_object_alive (p_demux) ) return -1; 
    981981                        msleep( 10000 ); 
    982982 
     
    15961596    for( ;; ) 
    15971597    { 
    1598         if( p_demux->b_die ) return VLC_EGENERIC; 
     1598        if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 
    15991599 
    16001600        if( AVI_PacketGetHeader( p_demux, &avi_pk ) ) 
     
    16161616            if( !(++i_loop_count % 1024) ) 
    16171617            { 
    1618                 if( p_demux->b_die ) return VLC_EGENERIC; 
     1618                if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 
    16191619                msleep( 10000 ); 
    16201620 
     
    20992099        if( !(++i_count % 1024) ) 
    21002100        { 
    2101             if( p_demux->b_die ) return VLC_EGENERIC; 
     2101            if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 
    21022102 
    21032103            msleep( 10000 ); 
     
    23952395        avi_packet_t pk; 
    23962396 
    2397         if( p_demux->b_die
     2397        if( !vlc_object_alive (p_demux)
    23982398        { 
    23992399            return; 
  • modules/demux/live555.cpp

    r260c389 r00b9584  
    324324                                      i_sdp_max - i_sdp - 1 ); 
    325325 
    326             if( p_demux->b_die || p_demux->b_error ) 
     326            if( !vlc_object_alive (p_demux) || p_demux->b_error ) 
    327327            { 
    328328                free( p_sdp ); 
     
    508508createnew: 
    509509    i_lefttries--; 
    510     if( p_demux->b_die || p_demux->b_error ) 
     510    if( !vlc_object_alive (p_demux) || p_demux->b_error ) 
    511511    { 
    512512        free( psz_user ); 
     
    670670        live_track_t *tk; 
    671671 
    672         if( p_demux->b_die || p_demux->b_error ) 
     672        if( !vlc_object_alive (p_demux) || p_demux->b_error ) 
    673673        { 
    674674            delete iter; 
     
    17971797 
    17981798    /* Avoid lock */ 
    1799     while( !p_timeout->b_die
     1799    while( vlc_object_alive (p_timeout)
    18001800    { 
    18011801        if( p_timeout->i_remain <= 0 ) 
  • modules/demux/mkv.cpp

    rad2b7c8 r00b9584  
    27972797 
    27982798    /* main loop */ 
    2799     while( !p_ev->b_die
     2799    while( vlc_object_alive (p_ev)
    28002800    { 
    28012801        if ( !p_sys->b_pci_packet_set ) 
     
    30553055 
    30563056        /* VOUT part */ 
    3057         if( p_vout && p_vout->b_die
     3057        if( p_vout && !vlc_object_alive (p_vout)
    30583058        { 
    30593059            var_DelCallback( p_vout, "mouse-moved", EventMouse, p_ev ); 
  • modules/demux/nsv.c

    r3561b9b r00b9584  
    388388    int      i_peek; 
    389389 
    390     while( !p_demux->b_die
     390    while( vlc_object_alive (p_demux)
    391391    { 
    392392        if( ( i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ) ) < 8 ) 
  • modules/demux/nuv.c

    r3561b9b r00b9584  
    336336    for( ;; ) 
    337337    { 
    338         if( p_demux->b_die
     338        if( !vlc_object_alive (p_demux)
    339339            return -1; 
    340340 
     
    443443            } 
    444444 
    445             while( !p_demux->b_die
     445            while( vlc_object_alive (p_demux)
    446446            { 
    447447                frame_header_t fh; 
     
    483483            p_sys->i_pcr = -1; 
    484484 
    485             while( !p_demux->b_die
     485            while( vlc_object_alive (p_demux)
    486486            { 
    487487                frame_header_t fh; 
  • modules/demux/ps.c

    r52ca31e r00b9584  
    244244        i = 0; 
    245245        i_current_pos = stream_Tell( p_demux->s ); 
    246         while( !p_demux->b_die && i < 40 && Demux2( p_demux, false ) > 0 ) i++; 
     246        while( vlc_object_alive (p_demux) && i < 40 && Demux2( p_demux, false ) > 0 ) i++; 
    247247 
    248248        /* Check end */ 
     
    251251        stream_Seek( p_demux->s, i_size - i_end ); 
    252252 
    253         while( !p_demux->b_die && Demux2( p_demux, true ) > 0 ); 
     253        while( vlc_object_alive (p_demux) && Demux2( p_demux, true ) > 0 ); 
    254254        if( i_current_pos >= 0 ) stream_Seek( p_demux->s, i_current_pos ); 
    255255    } 
  • modules/demux/pva.c

    r3561b9b r00b9584  
    345345    int      i_peek; 
    346346 
    347     while( !p_demux->b_die
     347    while( vlc_object_alive (p_demux)
    348348    { 
    349349        if( ( i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ) ) < 8 ) 
  • modules/demux/rtp.c

    rd17a6f2 r00b9584  
    373373                                block->p_buffer, block->i_buffer, false); 
    374374        if (((len <= 0) && fd_dead (fd)) 
    375          || demux->b_die
     375         || !vlc_object_alive (demux)
    376376        { 
    377377            block_Release (block); 
  • modules/demux/ts.c

    rd802741 r00b9584  
    942942        { 
    943943            msg_Warn( p_demux, "lost sync" ); 
    944             while( !p_demux->b_die && (i_pos < i_data) ) 
     944            while( vlc_object_alive (p_demux) && (i_pos < i_data) ) 
    945945            { 
    946946                i_pos++; 
     
    948948                    break; 
    949949            } 
    950             if( !p_demux->b_die
     950            if( vlc_object_alive (p_demux)
    951951                msg_Warn( p_demux, "sync found" ); 
    952952        } 
     
    10531053            block_Release( p_pkt ); 
    10541054 
    1055             while( !p_demux->b_die
     1055            while( vlc_object_alive (p_demux)
    10561056            { 
    10571057                const uint8_t *p_peek;