Changeset 2697:4a6231807551 in roaraudio
- Timestamp:
- 09/13/09 13:18:35 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/simple.h
r2647 r2697 56 56 int roar_simple_filter (int rate, int channels, int bits, int codec, char * server, char * name); 57 57 58 int roar_simple_connect_virtual(struct roar_connection * con, struct roar_stream * s, int parent );58 int roar_simple_connect_virtual(struct roar_connection * con, struct roar_stream * s, int parent, int dir); 59 59 60 60 int roar_simple_close(int fh); -
libroar/simple.c
r2656 r2697 348 348 } 349 349 350 int roar_simple_connect_virtual(struct roar_connection * con, struct roar_stream * s, int parent ) {350 int roar_simple_connect_virtual(struct roar_connection * con, struct roar_stream * s, int parent, int dir) { 351 351 struct roar_stream parent_stream; 352 int dir;353 352 354 353 if ( con == NULL || s == NULL || parent < 0 ) 355 354 return -1; 356 355 357 if ( roar_get_stream(con, &parent_stream, parent) == -1 ) 358 return -1; 359 360 if ( (dir = roar_stream_get_dir(&parent_stream)) == -1 ) 361 return -1; 356 if ( dir == -1 ) { 357 if ( roar_get_stream(con, &parent_stream, parent) == -1 ) 358 return -1; 359 360 if ( (dir = roar_stream_get_dir(&parent_stream)) == -1 ) 361 return -1; 362 } 362 363 363 364 if ( roar_stream_set_rel_id(s, parent) == -1 )
Note: See TracChangeset
for help on using the changeset viewer.