Changeset 827 for pjproject/trunk


Ignore:
Timestamp:
Nov 24, 2006 4:33:27 PM (18 years ago)
Author:
bennylp
Message:

Fixed speex logging to use PJLIB's log, because a GUI application doesn't have stderr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex/config.h

    r641 r827  
    11 
    2 #include <pj/types.h> 
     2#include <pj/log.h> 
    33 
    44/* Check if we need to use the fixed point version */ 
     
    2020#   pragma warning(disable: 4701)   // local variable used without initialized 
    2121#endif 
     22 
     23/* 
     24 * Override miscellaneous Speex functions. 
     25 */ 
     26#define OVERRIDE_SPEEX_ERROR 
     27#define speex_error(str) PJ_LOG(4,("speex", "error: %s", str)) 
     28 
     29#define OVERRIDE_SPEEX_WARNING 
     30#define speex_warning(str) PJ_LOG(5,("speex", "warning: %s", str)) 
     31 
     32#define OVERRIDE_SPEEX_WARNING_INT 
     33#define speex_warning_int(str,val)  PJ_LOG(5,("speex", "warning: %s: %d", str, val)) 
     34 
Note: See TracChangeset for help on using the changeset viewer.