Changeset 5843


Ignore:
Timestamp:
Jul 26, 2018 3:20:03 AM (6 years ago)
Author:
ming
Message:

Re #2126: Create thread when creating the event manager, which is required for video. Also add more doc about this in pjmedia_event_mgr.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/event.h

    r5825 r5843  
    265265    /** 
    266266     * Tell the event manager not to create any event worker thread. 
     267     * Do not set this flag if app plans to publish an event using 
     268     * PJMEDIA_EVENT_PUBLISH_POST_EVENT. 
    267269     */ 
    268270    PJMEDIA_EVENT_MGR_NO_THREAD = 1 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5842 r5843  
    113113    /* Create event manager */ 
    114114    if (!pjmedia_event_mgr_instance()) { 
    115         status = pjmedia_event_mgr_create(pjsua_var.pool,  
    116                                           PJMEDIA_EVENT_MGR_NO_THREAD, NULL); 
     115        status = pjmedia_event_mgr_create(pjsua_var.pool, 0, NULL); 
    117116        if (status != PJ_SUCCESS) { 
    118117            PJ_PERROR(1,(THIS_FILE, status, 
Note: See TracChangeset for help on using the changeset viewer.