Changeset 1504:d00454bcfd80 in roaraudio
- Timestamp:
- 04/01/09 17:49:52 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r1480 r1504 206 206 for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 207 207 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 } 212 214 213 215 have_stream = 1; … … 259 261 break; 260 262 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) ) { 262 266 streams_check(g_clients[i]->streams[j]); 263 267 } -
roard/sources.c
r1499 r1504 195 195 ROAR_STREAM_SERVER(s)->codec_orgi = codec; 196 196 197 streams_set_fh(stream, - 1);197 streams_set_fh(stream, -2); 198 198 streams_set_socktype(stream, ROAR_SOCKET_TYPE_FILE); 199 199
Note: See TracChangeset
for help on using the changeset viewer.