Changeset 1504:d00454bcfd80 in roaraudio


Ignore:
Timestamp:
04/01/09 17:49:52 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use fh=-2 as specal *read me* info

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r1480 r1504  
    206206  for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 
    207207   if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 
    208     FD_SET(fh, &r); 
    209  
    210     if ( fh > max_fh ) 
    211      max_fh = fh; 
     208    if ( fh > -1 ) { 
     209     FD_SET(fh, &r); 
     210 
     211     if ( fh > max_fh ) 
     212      max_fh = fh; 
     213    } 
    212214 
    213215    have_stream = 1; 
     
    259261    break; 
    260262   if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 
    261     if ( FD_ISSET(fh, &r) ) { 
     263    if ( fh == -2 ) { 
     264     streams_check(g_clients[i]->streams[j]); 
     265    } else if ( FD_ISSET(fh, &r) ) { 
    262266     streams_check(g_clients[i]->streams[j]); 
    263267    } 
  • roard/sources.c

    r1499 r1504  
    195195 ROAR_STREAM_SERVER(s)->codec_orgi = codec; 
    196196 
    197  streams_set_fh(stream, -1); 
     197 streams_set_fh(stream, -2); 
    198198 streams_set_socktype(stream, ROAR_SOCKET_TYPE_FILE); 
    199199 
Note: See TracChangeset for help on using the changeset viewer.