Ignore:
Timestamp:
Jul 26, 2018 2:50:06 AM (6 years ago)
Author:
ming
Message:

Re #2126: re: r5825, create pjmedia_event_mgr when initializing audio subsystem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_aud.c

    r5834 r5841  
    237237    /* To suppress warning about unused var when all codecs are disabled */ 
    238238    PJ_UNUSED_ARG(codec_id); 
     239 
     240    PJ_LOG(4,(THIS_FILE, "Initializing audio subsystem..")); 
     241 
     242    if (!pjmedia_event_mgr_instance()) { 
     243        status = pjmedia_event_mgr_create(pjsua_var.pool, 0, NULL); 
     244        if (status != PJ_SUCCESS) { 
     245            pjsua_perror(THIS_FILE, "Error creating PJMEDIA event manager", 
     246                         status); 
     247            goto on_error; 
     248        } 
     249    } 
    239250 
    240251    /* 
Note: See TracChangeset for help on using the changeset viewer.