Ignore:
Timestamp:
Jun 8, 2017 6:23:56 AM (4 years ago)
Author:
ming
Message:

Fixed #2022: Video Toolbox H264 encoder and decoder for Mac and iOS

File:
1 edited

Legend:

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

    r5410 r5603  
    7676    } 
    7777 
     78#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     79    status = pjmedia_codec_vid_toolbox_init(NULL, &pjsua_var.cp.factory); 
     80    if (status != PJ_SUCCESS) { 
     81        PJ_PERROR(1,(THIS_FILE, status, 
     82                     "Error initializing Video Toolbox codec")); 
     83        goto on_error; 
     84    } 
     85#endif 
     86 
    7887#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_OPENH264_CODEC 
    7988    status = pjmedia_codec_openh264_vid_init(NULL, &pjsua_var.cp.factory); 
     
    143152#if PJMEDIA_HAS_FFMPEG_VID_CODEC 
    144153    pjmedia_codec_ffmpeg_vid_deinit(); 
     154#endif 
     155 
     156#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     157    pjmedia_codec_vid_toolbox_deinit(); 
    145158#endif 
    146159 
Note: See TracChangeset for help on using the changeset viewer.