Changeset 1117:b7329495fc22 in roaraudio for roard/streams.c
- Timestamp:
- 01/16/09 17:32:09 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/streams.c
r1116 r1117 271 271 272 272 int streams_set_sync (int id, int sync) { 273 int fh; 274 275 if ( (fh = streams_get_fh(id)) == -1 ) 276 return -1; 277 278 return roar_socket_nonblock(fh, sync ? ROAR_SOCKET_BLOCK : ROAR_SOCKET_NONBLOCK); 273 int fh = streams_get_fh(id); 274 275 if ( fh != -1 ) { 276 if ( roar_socket_nonblock(fh, sync ? ROAR_SOCKET_BLOCK : ROAR_SOCKET_NONBLOCK) == -1 ) 277 return -1; 278 279 return fdatasync(fh); 280 } else { 281 return roar_vio_nonblock(&(g_streams[id]->vio), sync); 282 } 279 283 } 280 284
Note: See TracChangeset
for help on using the changeset viewer.