Changeset 2642:937a308aafb4 in roaraudio


Ignore:
Timestamp:
09/12/09 02:17:48 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

+debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/vio_transcode.c

    r2641 r2642  
    5858 
    5959ssize_t roar_vio_xcode_proc    (struct roar_vio_calls * vio, void *buf, size_t count) { 
     60#ifdef DEBUG 
     61 int ret; 
     62#endif 
     63 
    6064 if ( vio == NULL ) 
    6165  return -1; 
     
    6468  return -1; 
    6569 
    66  return roar_xcoder_proc(vio->inst, buf, count); 
     70#ifdef DEBUG 
     71 ret = roar_xcoder_proc(vio->inst, buf, count); 
     72 
     73 ROAR_DBG("roar_vio_xcode_proc(vio=%p, buf=%p, count=%lu): ret=%i", vio, buf, (unsigned long) count, ret); 
     74 
     75 return !ret ? count : -1; 
     76#else 
     77 return !roar_xcoder_proc(vio->inst, buf, count) ? count : -1; 
     78#endif 
    6779} 
    6880 
Note: See TracChangeset for help on using the changeset viewer.