Changeset 5979
- Timestamp:
- May 9, 2019 4:00:00 AM (6 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsua-lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_aud.c
r5956 r5979 301 301 &codec_cfg); 302 302 if (status != PJ_SUCCESS) { 303 PJ_PERROR(1,(THIS_FILE, status, "Error registering codecs"));303 pjsua_perror(THIS_FILE, "Error registering codecs", status); 304 304 goto on_error; 305 305 } … … 2446 2446 on_return: 2447 2447 if (status != PJ_SUCCESS) { 2448 PJ_LOG(3,(THIS_FILE, "Failed creating extra sound device"));2448 pjsua_perror(THIS_FILE, "Failed creating extra sound device", status); 2449 2449 pjsua_ext_snd_dev_destroy(snd); 2450 2450 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5978 r5979 4667 4667 100, NULL, NULL, &response); 4668 4668 if (status != PJ_SUCCESS) { 4669 PJ_LOG(3, (THIS_FILE, "Failed to create initial answer")); 4669 PJ_PERROR(3, (THIS_FILE, status, 4670 "Failed to create initial answer")); 4670 4671 goto on_return; 4671 4672 } … … 4673 4674 status = pjsip_inv_send_msg(inv, response); 4674 4675 if (status != PJ_SUCCESS) { 4675 PJ_LOG(3, (THIS_FILE, "Failed to send initial answer")); 4676 PJ_PERROR(3, (THIS_FILE, status, 4677 "Failed to send initial answer")); 4676 4678 goto on_return; 4677 4679 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5978 r5979 115 115 status = pjmedia_event_mgr_create(pjsua_var.pool, 0, NULL); 116 116 if (status != PJ_SUCCESS) { 117 PJ_PERROR(1,(THIS_FILE, status,118 "Error creating PJMEDIA event manager"));117 pjsua_perror(THIS_FILE, "Error creating PJMEDIA event manager", 118 status); 119 119 goto on_error; 120 120 } … … 1472 1472 &msg_data); 1473 1473 if (status != PJ_SUCCESS) { 1474 pj_perror(3,THIS_FILE, status,1475 "Failed requesting keyframe via SIP INFO") ;1474 PJ_PERROR(3,(THIS_FILE, status, 1475 "Failed requesting keyframe via SIP INFO")); 1476 1476 } else { 1477 1477 call_med->last_req_keyframe = now; … … 1792 1792 call_med->tp_ready = status; 1793 1793 pjsua_set_media_tp_state(call_med, PJSUA_MED_TP_NULL); 1794 PJ_PERROR(1,(THIS_FILE, status, "Error creating media transport"));1794 pjsua_perror(THIS_FILE, "Error creating media transport", status); 1795 1795 return status; 1796 1796 } -
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.