Changeset c887fde77c277647250c783fcb921a15a708f844

Show
Ignore:
Timestamp:
01/10/07 20:11:03 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1191262263 +0000
git-parent:

[e8d03d1408b0cf0b7490a4889551a0531af5e2af]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1191262263 +0000
Message:

Cleanup previous commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/network/httpd.c

    re8d03d1 rc887fde  
    10631063        goto error; 
    10641064 
     1065    vlc_object_lock( host ); 
     1066    if( vlc_object_waitpipe( host ) == -1 ) 
     1067    { 
     1068        vlc_object_unlock( host ); 
     1069        goto error; 
     1070    } 
     1071    vlc_object_unlock( host ); 
     1072 
    10651073    host->httpd = httpd; 
    10661074    vlc_mutex_init( httpd, &host->lock ); 
     
    20162024    counter_t *p_total_counter = stats_CounterCreate( host, VLC_VAR_INTEGER, STATS_COUNTER ); 
    20172025    counter_t *p_active_counter = stats_CounterCreate( host, VLC_VAR_INTEGER, STATS_COUNTER ); 
     2026    int evfd; 
    20182027    vlc_bool_t b_die = VLC_FALSE; 
     2028 
     2029    vlc_object_lock( host ); 
     2030    evfd = vlc_object_waitpipe( host ); 
     2031    vlc_object_unlock( host ); 
    20192032 
    20202033    while( !b_die ) 
     
    24152428                b_low_delay = VLC_TRUE; 
    24162429        } 
    2417  
    2418         vlc_object_lock( host ); 
    2419         int evfd = ufd[nfd].fd = vlc_object_waitpipe( host ); 
    2420         if( ufd[nfd].fd != -1 ) 
    2421         { 
    2422             ufd[nfd].events = POLLIN; 
    2423             ufd[nfd].revents = 0; 
    2424             nfd++; 
    2425         } 
    2426         vlc_object_unlock( host ); 
    24272430        vlc_mutex_unlock( &host->lock ); 
     2431 
     2432        ufd[nfd].fd = evfd; 
     2433        ufd[nfd].events = POLLIN; 
     2434        ufd[nfd].revents = 0; 
     2435        nfd++; 
    24282436 
    24292437        /* we will wait 20ms (not too big) if HTTPD_CLIENT_WAITING */ 
     
    24422450 
    24432451        vlc_object_lock( host ); 
    2444         if( ( evfd != -1 ) && ( ufd[nfd - 1].revents )
     2452        if( ufd[nfd - 1].revents
    24452453            b_die = vlc_object_wait( host ); 
    24462454        vlc_object_unlock( host );