Changeset 2656:87608958d363 in roaraudio for libroar
- Timestamp:
- 09/12/09 14:29:35 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r2655 r2656 349 349 350 350 int roar_simple_connect_virtual(struct roar_connection * con, struct roar_stream * s, int parent) { 351 return -1; 351 struct roar_stream parent_stream; 352 int dir; 353 354 if ( con == NULL || s == NULL || parent < 0 ) 355 return -1; 356 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 363 if ( roar_stream_set_rel_id(s, parent) == -1 ) 364 return -1; 365 366 if ( roar_stream_connect(con, s, dir) == -1 ) 367 return -1; 368 369 if ( roar_stream_set_flags(con, s, ROAR_FLAG_VIRTUAL, 0) == -1 ) { 370 roar_kick(con, ROAR_OT_STREAM, roar_stream_get_id(s)); 371 return -1; 372 } 373 374 return 0; 352 375 } 353 376
Note: See TracChangeset
for help on using the changeset viewer.