Changeset 5979 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- May 9, 2019 4:00:00 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r5962 r5979 49 49 status = pjmedia_video_format_mgr_create(pjsua_var.pool, 64, 0, NULL); 50 50 if (status != PJ_SUCCESS) { 51 PJ_PERROR(1,(THIS_FILE, status,52 "Error creating PJMEDIA video format manager"));51 pjsua_perror(THIS_FILE, "Error creating PJMEDIA video format manager", 52 status); 53 53 goto on_error; 54 54 } … … 56 56 status = pjmedia_converter_mgr_create(pjsua_var.pool, NULL); 57 57 if (status != PJ_SUCCESS) { 58 PJ_PERROR(1,(THIS_FILE, status,59 "Error creating PJMEDIA converter manager"));58 pjsua_perror(THIS_FILE, "Error creating PJMEDIA converter manager", 59 status); 60 60 goto on_error; 61 61 } … … 63 63 status = pjmedia_vid_codec_mgr_create(pjsua_var.pool, NULL); 64 64 if (status != PJ_SUCCESS) { 65 PJ_PERROR(1,(THIS_FILE, status,66 "Error creating PJMEDIA video codec manager"));65 pjsua_perror(THIS_FILE, "Error creating PJMEDIA video codec manager", 66 status); 67 67 goto on_error; 68 68 } … … 71 71 &pjsua_var.vid_conf); 72 72 if (status != PJ_SUCCESS) { 73 PJ_PERROR(1,(THIS_FILE, status, 74 "Error creating PJMEDIA video conference bridge")); 73 pjsua_perror(THIS_FILE, 74 "Error creating PJMEDIA video conference bridge", 75 status); 75 76 goto on_error; 76 77 } … … 79 80 status = pjmedia_codec_vid_toolbox_init(NULL, &pjsua_var.cp.factory); 80 81 if (status != PJ_SUCCESS) { 81 PJ_PERROR(1,(THIS_FILE, status,82 "Error initializing Video Toolbox codec"));82 pjsua_perror(THIS_FILE, "Error initializing Video Toolbox codec", 83 status); 83 84 goto on_error; 84 85 } … … 88 89 status = pjmedia_codec_openh264_vid_init(NULL, &pjsua_var.cp.factory); 89 90 if (status != PJ_SUCCESS) { 90 PJ_PERROR(1,(THIS_FILE, status,91 "Error initializing OpenH264 library"));91 pjsua_perror(THIS_FILE, "Error initializing OpenH264 library", 92 status); 92 93 goto on_error; 93 94 } … … 97 98 status = pjmedia_codec_ffmpeg_vid_init(NULL, &pjsua_var.cp.factory); 98 99 if (status != PJ_SUCCESS) { 99 PJ_PERROR(1,(THIS_FILE, status, 100 "Error initializing ffmpeg library")); 100 pjsua_perror(THIS_FILE, "Error initializing ffmpeg library", status); 101 101 goto on_error; 102 102 } … … 105 105 status = pjmedia_vid_dev_subsys_init(&pjsua_var.cp.factory); 106 106 if (status != PJ_SUCCESS) { 107 PJ_PERROR(1,(THIS_FILE, status,108 "Error creating PJMEDIA video subsystem"));107 pjsua_perror(THIS_FILE, "Error creating PJMEDIA video subsystem", 108 status); 109 109 goto on_error; 110 110 } … … 766 766 &enabled); 767 767 if (status != PJ_SUCCESS) { 768 PJ_PERROR(1,(THIS_FILE, status,768 pjsua_perror(THIS_FILE, 769 769 "Error activating native preview, falling back " 770 "to software preview..")); 770 "to software preview..", 771 status); 771 772 w->is_native = PJ_FALSE; 772 773 } … … 1356 1357 &enabled); 1357 1358 if (status != PJ_SUCCESS) { 1358 PJ_PERROR(1,(THIS_FILE, status,1359 pjsua_perror(THIS_FILE, 1359 1360 "Error activating native preview, falling back " 1360 "to software preview..")); 1361 "to software preview..", 1362 status); 1361 1363 w->is_native = PJ_FALSE; 1362 1364 }
Note: See TracChangeset
for help on using the changeset viewer.