Changeset 2605:05a5e60942b9 in roaraudio for roard/streams.c


Ignore:
Timestamp:
09/11/09 15:00:27 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected notify of parent stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2603 r2605  
    168168 
    169169 if ( streams_get_flag(id, ROAR_FLAG_VIRTUAL) == 1 ) { 
    170   streams_ctl(ROAR_STREAM(s)->pos_rel_id, ROAR_CODECFILTER_CTL_VIRTUAL_DELETE, &id); 
     170  // we un-group the stream here to avoid a client deleting the parent deleting the client deleting ... 
     171  i = ROAR_STREAM(s)->pos_rel_id; 
     172  ROAR_STREAM(s)->pos_rel_id = -1; 
     173  ROAR_DBG("streams_delete(id=%i): Stream has flag virtual, notifying parent stream %i", id, i); 
     174  streams_ctl(i, ROAR_CODECFILTER_CTL_VIRTUAL_DELETE, &id); 
     175  ROAR_STREAM(s)->pos_rel_id = i; 
    171176 } 
    172177 
Note: See TracChangeset for help on using the changeset viewer.