Changeset 2952:ce25506bc479 in roaraudio
- Timestamp:
- 10/17/09 09:27:33 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/mixer.c
r2942 r2952 65 65 } 66 66 67 if ( streams_set_flag(stream, ROAR_FLAG_ PRIMARY) == -1 ) {67 if ( streams_set_flag(stream, ROAR_FLAG_IMMUTABLE) == -1 ) { 68 68 _err(); 69 69 } -
roard/req.c
r2951 r2952 685 685 clients_delete(info[1]); 686 686 } else if ( info[0] == ROAR_OT_STREAM ) { 687 if ( streams_get_flag(info[1], ROAR_FLAG_IMMUTABLE) == 1 ) 688 return -1; 689 687 690 streams_delete(info[1]); 688 691 } else if ( info[0] == ROAR_OT_SOURCE ) { 692 if ( streams_get_flag(info[1], ROAR_FLAG_IMMUTABLE) == 1 ) 693 return -1; 694 689 695 if ( streams_get_flag(info[1], ROAR_FLAG_SOURCE) == 1 ) { 690 696 streams_delete(info[1]); -
roard/streams.c
r2938 r2952 615 615 _CHECK_SID(id); 616 616 617 if ( flag & ROAR_FLAG_IMMUTABLE ) 618 flag |= ROAR_FLAG_PRIMARY; 619 617 620 if ( flag & ROAR_FLAG_MMAP ) 618 621 if ( streams_set_mmap(id, 0) == -1 ) … … 692 695 int streams_reset_flag (int id, int flag) { 693 696 _CHECK_SID(id); 697 698 if ( g_streams[id]->flags & ROAR_FLAG_IMMUTABLE ) { 699 flag |= ROAR_FLAG_PRIMARY; 700 flag -= ROAR_FLAG_PRIMARY; 701 } 694 702 695 703 if ( flag & ROAR_FLAG_RECSOURCE )
Note: See TracChangeset
for help on using the changeset viewer.