Changeset 2626:6c6fa1dc7132 in roaraudio


Ignore:
Timestamp:
09/11/09 22:33:46 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

ask codecfilter if virtual child stream is ok.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2625 r2626  
    570570 
    571571int streams_set_flag     (int id, int flag) { 
     572 int parent; 
     573 
    572574 if ( g_streams[id] == NULL ) 
    573575  return -1; 
     
    580582  streams_set_primary(id, 1); 
    581583  flag -= ROAR_FLAG_PRIMARY; 
     584 } 
     585 
     586 if ( flag & ROAR_FLAG_VIRTUAL ) { 
     587  if ( (parent = ROAR_STREAM(g_streams[id])->pos_rel_id) == -1 ) 
     588   return -1; 
     589 
     590  if ( streams_ctl(parent, ROAR_CODECFILTER_CTL_VIRTUAL_NEW|ROAR_STREAM_CTL_TYPE_INT, &id) == -1 ) { 
     591//   flag -= ROAR_FLAG_VIRTUAL; 
     592   return -1; 
     593  } 
    582594 } 
    583595 
Note: See TracChangeset for help on using the changeset viewer.