Changeset 2021:9f8951a93401 in roaraudio


Ignore:
Timestamp:
06/19/09 17:49:22 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not crach on invalide stream meta data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r1928 r2021  
    626626 todo_in = ROAR_OUTPUT_CALC_OUTBUFSIZE(stream_info); 
    627627 
     628 if ( todo_in == 0 ) { 
     629  ROAR_WARN("streams_fill_mixbuffer(id=%i, info=%p{...}): todo_in == 0, this should not happen!", id, info); 
     630  return -1; 
     631 } 
     632 
    628633 // calc mul and div: 
    629634 mul = todo    / todo_in; 
Note: See TracChangeset for help on using the changeset viewer.