Changeset 5243:f286a604a4cf in roaraudio for libroarpulse


Ignore:
Timestamp:
11/13/11 11:46:46 (8 years ago)
Author:
phi
Branch:
default
Message:

fixed a warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r4708 r5243  
    190190 size_t len; 
    191191 size_t ret; 
     192 int bufret; 
    192193 
    193194 ROAR_DBG("_roar_pa_stream_ioecb(*) = ?"); 
     
    209210     // TODO: handle errors 
    210211     if ( ret == len ) { 
    211       roar_buffer_next(&(s->iobuffer)); 
     212      bufret = roar_buffer_next(&(s->iobuffer)); 
    212213     } else { 
    213       roar_buffer_set_offset(s->iobuffer, ret); 
     214      bufret = roar_buffer_set_offset(s->iobuffer, ret); 
     215     } 
     216     if ( bufret == -1 ) { 
     217      ROAR_WARN("_roar_pa_stream_ioecb(*): Altering buffer after write failed. Bad."); 
     218      return; 
    214219     } 
    215220    } 
Note: See TracChangeset for help on using the changeset viewer.