Changeset 678:cdda7dad9979 in roaraudio


Ignore:
Timestamp:
08/27/08 15:12:19 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed endless loop bugs in table lookups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter.c

    r677 r678  
    5151  if ( strcasecmp(l->name, str) == 0 ) 
    5252   return l->id; 
     53  l++; 
    5354 } 
    5455 
     
    6263  if ( l->id == id ) 
    6364   return l->name; 
     65  l++; 
    6466 } 
    6567 
     
    8385 bytes            = stream->info.bits / 8; 
    8486 
    85  while ( l->id != id ) 
     87 while ( l->id != id ) { 
    8688  if ( l->id == -1 ) 
    8789   return -1; 
     90  l++; 
     91 } 
    8892 
    8993 filter->uninit = l->uninit; 
Note: See TracChangeset for help on using the changeset viewer.