Changeset 5942


Ignore:
Timestamp:
Mar 8, 2019 2:53:51 AM (6 weeks ago)
Author:
ming
Message:

Re #2147 (misc): Fixed assertion in simpleua sample for not creating event manager.
Also add support for VideoToolbox? codec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r5747 r5942  
    386386    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
    387387 
     388#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     389    status = pjmedia_codec_vid_toolbox_init(NULL, &cp.factory); 
     390    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
     391#endif 
     392 
    388393#   if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 
    389394    status = pjmedia_codec_openh264_vid_init(NULL, &cp.factory); 
     
    399404#endif  /* PJMEDIA_HAS_VIDEO */ 
    400405     
     406    /* Create event manager */ 
     407    status = pjmedia_event_mgr_create(pool, 0, NULL); 
     408    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
     409 
    401410    /*  
    402411     * Create media transport used to send/receive RTP/RTCP socket. 
     
    593602            pjmedia_transport_close(g_med_transport[i]); 
    594603    } 
     604 
     605    /* Destroy event manager */ 
     606    pjmedia_event_mgr_destroy(NULL);  
    595607 
    596608    /* Deinit pjmedia endpoint */ 
Note: See TracChangeset for help on using the changeset viewer.