Changeset 2250:1d6f167a7483 in roaraudio


Ignore:
Timestamp:
07/28/09 19:01:21 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test pos_rel_id on new ROAR_DIR_RAW_IN streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r1907 r2250  
    141141   break; 
    142142 
     143  case ROAR_DIR_RAW_IN: 
     144    if ( ROAR_STREAM(s)->pos_rel_id == -1     || 
     145         ROAR_STREAM(s)->pos_rel_id == stream || 
     146         streams_get_dir(ROAR_STREAM(s)->pos_rel_id) != ROAR_DIR_RAW_OUT 
     147       ) { 
     148     ROAR_STREAM(s)->pos_rel_id = -1; // force this here as it will try to delete itself while deleting 
     149                                      // in case rel_id == stream 
     150     streams_delete(stream); 
     151     return -1; 
     152    } 
     153 
     154   break; 
    143155  case ROAR_DIR_THRU: 
    144156 
Note: See TracChangeset for help on using the changeset viewer.