Changeset 2713:0b9af3059649 in roaraudio


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

new debug lions, fixed bug with CCB for close

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r2704 r2713  
    5959 int i; 
    6060 
     61 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 
     62 
    6163 if ( inst == NULL ) 
    6264  return -1; 
     65 
     66 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 
    6367 
    6468 // check if there are streams to close... 
    6569 for (i = 0; i < CONT_FW_MAX_CHILDS; i++) { 
    6670  if ( inst->child[i] != NULL ) { 
     71   ROAR_DBG("cont_fw_delete(inst=%p) = -1 // there are still open childs", inst); 
    6772   return -1; 
    6873  } 
    6974 } 
     75 
     76 ROAR_DBG("cont_fw_delete(inst=%p) = ?", inst); 
    7077 
    7178 if ( inst->pcb.close != NULL ) 
     
    7380 
    7481 free(inst); 
     82 
     83 ROAR_DBG("cont_fw_delete(inst=%p) = 0", inst); 
    7584 
    7685 return 0; 
     
    205214 
    206215 if ( inst->parent->ccb.close != NULL ) 
    207   return inst->parent->ccb.close(inst->parent, inst); 
     216  if ( inst->parent->ccb.close(inst->parent, inst) == -1 ) 
     217   r = -1; 
    208218 
    209219 for (i = 0; i < CONT_FW_MAX_CHILDS; i++) { 
Note: See TracChangeset for help on using the changeset viewer.