Changeset 5162:85c55ccd12a9 in roaraudio for roard/codecfilter_flac.c


Ignore:
Timestamp:
10/16/11 20:12:40 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_flac.c

    r5131 r5162  
    147147    continue; 
    148148 
    149    stream_meta_add(ROAR_STREAM(self->ss)->id, type, "", value); 
     149   if ( stream_meta_add(ROAR_STREAM(self->ss)->id, type, "", value) == -1 ) { 
     150    ROAR_WARN("cf_flac_cb_metadata(..., client_data=%p{ROAR_STREAM(.ss)->id=%i}): Can not add meta data: %s", 
     151              ROAR_STREAM(self->ss)->id, roar_error2str(roar_error)); 
     152   } 
    150153 
    151154    if ( strcmp(keycopy, "REPLAYGAIN_TRACK_PEAK") == 0 ) { 
     
    252255  stats.bytes = 0; 
    253256 } else { 
    254   roar_buffer_ring_stats(self->decoder.written, &stats); 
     257  if ( roar_buffer_ring_stats(self->decoder.written, &stats) == -1 ) 
     258   return -1; 
    255259 } 
    256260 
     
    275279   stats.bytes = 0; 
    276280  } else { 
    277    roar_buffer_ring_stats(self->decoder.written, &stats); 
     281   if ( roar_buffer_ring_stats(self->decoder.written, &stats) == -1 ) 
     282    return -1; 
    278283  } 
    279284 } 
Note: See TracChangeset for help on using the changeset viewer.