Changeset 5841 for pjproject


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.

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 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    /* 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r5788 r5841  
    6262    } 
    6363 
    64     status = pjmedia_event_mgr_create(pjsua_var.pool, 0, NULL); 
    65     if (status != PJ_SUCCESS) { 
    66         PJ_PERROR(1,(THIS_FILE, status, 
    67                      "Error creating PJMEDIA event manager")); 
    68         goto on_error; 
     64    if (!pjmedia_event_mgr_instance()) { 
     65        status = pjmedia_event_mgr_create(pjsua_var.pool, 0, NULL); 
     66        if (status != PJ_SUCCESS) { 
     67            PJ_PERROR(1,(THIS_FILE, status, 
     68                         "Error creating PJMEDIA event manager")); 
     69            goto on_error; 
     70        } 
    6971    } 
    7072 
Note: See TracChangeset for help on using the changeset viewer.