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_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.