Changeset 3857:8ed6d81a32d6 in roaraudio


Ignore:
Timestamp:
05/16/10 23:05:16 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_debug_warn_obsolete() and roar_libroar_*warn()

Location:
libroar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/file.c

    r3811 r3857  
    106106#endif 
    107107 
     108 roar_debug_warn_obsolete("roar_file_send_raw", "roar_vio_copy_data", NULL); 
     109 
    108110#ifdef ROAR_HAVE_LINUX_SENDFILE 
    109111 while ((ret = sendfile(out, in, NULL, BUFMAX)) > 0) 
     
    268270  } 
    269271 
     272  roar_libroar_nowarn(); 
    270273  if ( (out = roar_get_connection_fh(con)) == -1 ) { 
    271274   ROAR_ERR("roar_file_play_full(*): Can not get socket of server connection for exec data transmition."); 
    272275   close(in); 
    273    return -1; 
    274   } 
     276   roar_libroar_warn(); 
     277   return -1; 
     278  } 
     279  roar_libroar_warn(); 
    275280 
    276281  ROAR_SHUTDOWN(out, SHUT_RD); 
  • libroar/simple.c

    r3812 r3857  
    9393 } 
    9494 
     95 roar_libroar_nowarn(); 
    9596 if ( (ret = roar_get_connection_fh(&con)) == -1 ) { 
     97  roar_libroar_warn(); 
    9698  roar_disconnect(&con); 
    9799  return -1; 
    98100 } 
     101 roar_libroar_warn(); 
    99102 
    100103 if ( dir == ROAR_DIR_PLAY ) { 
     
    128131int roar_simple_new_stream (struct roar_connection * con, int rate, int channels, int bits, int codec, int dir) { 
    129132 struct roar_stream     s; 
    130  return roar_simple_new_stream_obj(con, &s, rate, channels, bits, codec, dir); 
     133 int ret; 
     134 
     135 roar_debug_warn_sysio("roar_simple_new_stream", "roar_vio_simple_new_stream_obj", NULL); 
     136 
     137 roar_libroar_nowarn(); 
     138 ret = roar_simple_new_stream_obj(con, &s, rate, channels, bits, codec, dir); 
     139 roar_libroar_warn(); 
     140 
     141 return ret; 
    131142} 
    132143 
     
    170181 
    171182#ifdef ROAR_HAVE_BSDSOCKETS 
     183 roar_libroar_nowarn(); 
    172184 if ( getsockname(roar_get_connection_fh(con), (struct sockaddr *)&socket_addr, &len) == -1 ) { 
    173   return -1; 
    174  } 
     185  roar_libroar_warn(); 
     186  return -1; 
     187 } 
     188 roar_libroar_warn(); 
    175189#else 
    176190 return -1; 
  • libroar/stream.c

    r3822 r3857  
    264264 ROAR_DBG("roar_stream_passfh(con=%p{...}, s={.id=%i,...}, fh=%i) = ?", con, s->id, fh); 
    265265 
    266  if ( (confh = roar_get_connection_fh(con)) == -1 ) 
    267   return -1; 
     266 roar_libroar_nowarn(); 
     267 if ( (confh = roar_get_connection_fh(con)) == -1 ) { 
     268  roar_libroar_warn(); 
     269  return -1; 
     270 } 
     271 roar_libroar_warn(); 
    268272 
    269273 if ( roar_send_message(con, &m, NULL) == -1 ) { 
     
    339343 
    340344int roar_stream_send_data (struct roar_connection * con, struct roar_stream * s, char * data, size_t len) { 
    341  if ( ! s ) 
     345 
     346 roar_debug_warn_obsolete("roar_stream_send_data", "roar_vio_write", NULL); 
     347 
     348 if ( s == NULL ) 
    342349  return -1; 
    343350 
    344351 if ( s->fh == -1 ) { 
    345   if ( !con ) 
     352  if ( con == NULL ) 
    346353   return -1; 
    347354 
Note: See TracChangeset for help on using the changeset viewer.