Changeset 5162:85c55ccd12a9 in roaraudio for roard/sources.c
- Timestamp:
- 10/16/11 20:12:40 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/sources.c
r4964 r5162 233 233 } 234 234 235 roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAMID, &stream); // ignore errors here236 roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAM, s); // ignore errors here235 _LIBROAR_IGNORE_RET(roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAMID, &stream)); // ignore errors here 236 _LIBROAR_IGNORE_RET(roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAM, s)); // ignore errors here 237 237 238 238 if ( f_sync ) { … … 251 251 struct roar_stream_server * ss; 252 252 253 if ( fh > -1 )254 return streams_set_fh(stream, fh);255 256 253 streams_get(stream, &ss); 257 254 258 if ( roar_vio_open_file(&(ss->vio), device, O_RDONLY, 0644) == -1 ) 259 return -1; 255 if ( fh > -1 ) { 256 if ( roar_vio_open_fh(&(ss->vio), fh) == -1 ) 257 return -1; 258 } else { 259 if ( roar_vio_open_file(&(ss->vio), device, O_RDONLY, 0644) == -1 ) 260 return -1; 261 } 260 262 261 263 return streams_set_fh(stream, -2);
Note: See TracChangeset
for help on using the changeset viewer.