Changeset 2225:0c8e399f1041 in roaraudio


Ignore:
Timestamp:
07/28/09 01:45:49 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected return codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarradio.c

    r2222 r2225  
    192192 if ( roar_simple_connect(con, server, "roarradio") == -1 ) { 
    193193  ROAR_ERR("Can not connect to server"); 
    194   return 0; 
     194  return 1; 
    195195 } 
    196196 
    197197 if ( roar_stream_new(stream, rate, channels, bits, codec) == -1 ) { 
    198198  roar_disconnect(con); 
    199   return -1; 
     199  return 1; 
    200200 } 
    201201 
    202202 if ( roar_stream_connect(con, stream, ROAR_DIR_PLAY) == -1 ) { 
    203203  roar_disconnect(con); 
    204   return -1; 
     204  return 1; 
    205205 } 
    206206 
    207207 if ( roar_stream_passfh(con, stream, in) == -1 ) { 
    208208  roar_disconnect(con); 
    209   return -1; 
     209  return 1; 
    210210 } 
    211211 
Note: See TracChangeset for help on using the changeset viewer.