Changeset 1247 for pjproject/trunk


Ignore:
Timestamp:
May 3, 2007 2:44:45 PM (18 years ago)
Author:
bennylp
Message:

Fixed crash in PortAudio?'s Pa_Util_DebugPrint (pa_debugprint.c - line 102)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/pasound.c

    r1041 r1247  
    190190} 
    191191 
     192/* Logging callback from PA */ 
     193static void pa_log_cb(const char *log) 
     194{ 
     195    PJ_LOG(5,(THIS_FILE, "PA message: %s", log)); 
     196} 
     197 
     198/* We should include pa_debugprint.h for this, but the header 
     199 * is not available publicly. :( 
     200 */ 
     201typedef void (*PaUtilLogCallback ) (const char *log); 
     202void PaUtil_SetDebugPrintFunction(PaUtilLogCallback  cb); 
    192203 
    193204/* 
     
    198209    if (++snd_init_count == 1) { 
    199210        int err; 
     211 
     212        PaUtil_SetDebugPrintFunction(&pa_log_cb); 
    200213 
    201214        snd_mgr.factory = factory; 
Note: See TracChangeset for help on using the changeset viewer.