Changeset 5013:313cd6a2ca34 in roaraudio


Ignore:
Timestamp:
05/26/11 13:01:50 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed segfaul when buffer chain becomes empty on shift_out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/buffer.c

    r5011 r5013  
    367367 *len = 0; 
    368368 
    369  _ckmem_corruption(cur); 
    370  
    371369 while (todo && cur != NULL) { 
    372370  ROAR_DBG("roar_buffer_shift_out(*): todo=%u, cur=%p", (unsigned int) todo, cur); 
     371 
     372  _ckmem_corruption(cur); 
    373373 
    374374  if ( roar_buffer_get_len(cur, &cl) == -1 ) 
     
    399399   if ( roar_buffer_next(&cur) == -1 ) 
    400400    return -1; 
    401    _ckmem_corruption(cur); 
    402401  } 
    403402 
Note: See TracChangeset for help on using the changeset viewer.