Show
Ignore:
Timestamp:
28/08/08 21:42:06 (3 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1219952526 +0300
git-parent:

[76f2181dec2cdd65c04638bd15c99948d9ea2eb3]

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

SD: pull down cancellation safety on those SD with lame threads

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/services_discovery/podcast.c

    rd11fd0d rc6d9fff  
    160160    var_AddCallback( p_sd, "podcast-urls", UrlsChange, p_sys ); 
    161161 
    162     while( vlc_object_alive (p_sd)
     162    for( ;;
    163163    { 
    164         int i; 
     164        /* FIXME: That's 2000 wake up per seconds too many. */ 
     165        msleep( 500 ); 
     166 
     167        int canc = vlc_savecancel (); /* <- FIXME: should not be needed */ 
    165168        if( p_sys->b_update == true ) 
    166169        { 
     
    173176        } 
    174177 
    175         for( i = 0; i < p_sd->p_sys->i_input; i++ ) 
     178        for( int i = 0; i < p_sd->p_sys->i_input; i++ ) 
    176179        { 
    177180            if( p_sd->p_sys->pp_input[i]->b_eof 
     
    185188            } 
    186189        } 
    187         msleep( 500 ); 
     190        vlc_restorecancel (canc); 
    188191    } 
    189192}