Changeset 2417:ca4883b53c04 in roaraudio for roard/streams.c
- Timestamp:
- 08/18/09 04:33:45 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/streams.c
r2416 r2417 25 25 #include "roard.h" 26 26 27 int streams_thru_num = 0; 27 int streams_thru_num = 0; 28 int streams_recsource_id = -1; 28 29 29 30 int streams_init (void) { … … 141 142 ROAR_DBG("streams_delete(id=%i): g_streams[id]->id=%i", id, ROAR_STREAM(s)->id); 142 143 144 if ( streams_get_flag(id, ROAR_FLAG_RECSOURCE) == 1 ) 145 streams_reset_flag(id, ROAR_FLAG_RECSOURCE); 146 143 147 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 144 148 if ( g_streams[i] != NULL && ROAR_STREAM(g_streams[i])->pos_rel_id == id ) { … … 508 512 } 509 513 514 if ( flag & ROAR_FLAG_RECSOURCE ) { 515 if ( streams_recsource_id != -1 ) { 516 if ( streams_reset_flag(streams_recsource_id, ROAR_FLAG_RECSOURCE) == -1 ) 517 return -1; 518 } 519 520 streams_recsource_id = id; 521 } 522 510 523 g_streams[id]->flags |= flag; 511 524 … … 521 534 if ( g_streams[id] == NULL ) 522 535 return -1; 536 537 if ( flag & ROAR_FLAG_RECSOURCE ) 538 if ( streams_recsource_id == id ) 539 streams_recsource_id = -1; 523 540 524 541 if ( flag & ROAR_FLAG_MMAP )
Note: See TracChangeset
for help on using the changeset viewer.