Changeset 5035
- Timestamp:
- Mar 27, 2015 6:17:27 AM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/wmme_dev.c
r4946 r5035 895 895 enum { MAX_BURST = 1000 }; 896 896 897 /* Suppress compile warning for unused debugging vars */ 898 PJ_UNUSED_ARG(rec_cnt); 899 PJ_UNUSED_ARG(play_cnt); 897 900 rec_cnt = play_cnt = 0; 898 901 -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
r4987 r5035 805 805 } else { 806 806 /* NB frame */ 807 unsignedint advance = submode;807 int advance = submode; 808 808 speex_mode_query(&speex_nb_mode, SPEEX_SUBMODE_BITS_PER_FRAME, &advance); 809 809 if (advance < 0) { -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r4926 r5035 85 85 PJ_DEF(const char*) pjmedia_sdp_neg_state_str(pjmedia_sdp_neg_state state) 86 86 { 87 if ( state >=0 && state < (pjmedia_sdp_neg_state)PJ_ARRAY_SIZE(state_str))87 if ((int)state >=0 && state < (pjmedia_sdp_neg_state)PJ_ARRAY_SIZE(state_str)) 88 88 return state_str[state]; 89 89 -
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r4728 r5035 852 852 * checked first. 853 853 */ 854 if (ice_st->comp[0]->default_cand >= 0 && 855 ice_st->comp[0]->cand_list[ice_st->comp[0]->default_cand].type 854 if (ice_st->comp[0]->cand_list[ice_st->comp[0]->default_cand].type 856 855 == PJ_ICE_CAND_TYPE_SRFLX) 857 856 { … … 1041 1040 } else { 1042 1041 pj_ice_strans_comp *comp = ice_st->comp[comp_id - 1]; 1043 pj_assert(comp->default_cand >=0 && comp->default_cand<comp->cand_cnt);1042 pj_assert(comp->default_cand<comp->cand_cnt); 1044 1043 pj_memcpy(cand, &comp->cand_list[comp->default_cand], 1045 1044 sizeof(pj_ice_sess_cand)); -
pjproject/trunk/pjsip-apps/src/pjsystest/main_console.c
r3553 r5035 100 100 while (*p && *p!='\r' && *p!='\n') { 101 101 unsigned d = (*p - '0'); 102 if (d < 0 || d>= choice->submenu_cnt) {102 if (d >= choice->submenu_cnt) { 103 103 puts("Invalid selection"); 104 104 choice = NULL; -
pjproject/trunk/pjsip-apps/src/samples/pcaputil.c
r4537 r5035 308 308 /* Get codec info and param for the specified payload type */ 309 309 app.pt = pkt0.rtp->pt; 310 if (app.pt >=0 && app.pt< 96) {310 if (app.pt < 96) { 311 311 T( pjmedia_codec_mgr_get_codec_info(cmgr, pkt0.rtp->pt, &ci) ); 312 312 } else { -
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r4537 r5035 1216 1216 case 'c': 1217 1217 app.client.job_count = my_atoi(pj_optarg); 1218 if (app.client.job_count < 0) {1219 PJ_LOG(3,(THIS_FILE, "Invalid --local-port %s", pj_optarg));1220 return -1;1221 }1222 1218 if (app.client.job_count > pjsip_cfg()->tsx.max_count) 1223 1219 PJ_LOG(3,(THIS_FILE, … … 1260 1256 case 't': 1261 1257 app.client.timeout = my_atoi(pj_optarg); 1262 if (app.client.timeout < 0 || app.client.timeout> 600) {1258 if (app.client.timeout > 600) { 1263 1259 PJ_LOG(3,(THIS_FILE, "Invalid --timeout %s", pj_optarg)); 1264 1260 return -1; -
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r4537 r5035 915 915 case 'c': 916 916 app.max_calls = atoi(pj_optarg); 917 if (app.max_calls < 0 || app.max_calls > MAX_CALLS) { 918 PJ_LOG(3,(THIS_FILE, "Invalid max calls value %s", pj_optarg)); 917 if (app.max_calls > MAX_CALLS) { 918 PJ_LOG(3,(THIS_FILE,"Invalid max calls value %s " 919 "(must be <= %d)", pj_optarg, MAX_CALLS)); 919 920 return 1; 920 921 } -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r4985 r5035 3637 3637 if (pjsip_cfg()->endpt.disable_secure_dlg_check == PJ_FALSE && 3638 3638 dlg->secure && e->body.tsx_state.type==PJSIP_EVENT_RX_MSG && 3639 (tsx->role==PJSIP_ROLE_UAC && tsx->status_code/100 == 2 || 3640 tsx->role==PJSIP_ROLE_UAS && tsx->state == PJSIP_TSX_STATE_TRYING) && 3639 ((tsx->role==PJSIP_ROLE_UAC && tsx->status_code/100 == 2) || 3640 (tsx->role==PJSIP_ROLE_UAS && tsx->state == PJSIP_TSX_STATE_TRYING)) 3641 && 3641 3642 (tsx->method.id==PJSIP_INVITE_METHOD || 3642 3643 pjsip_method_cmp(&tsx->method, &pjsip_update_method)==0)) -
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r4958 r5035 154 154 */ 155 155 if (bytes_read > MIN_SIZE) { 156 pj_s ize_t size_eaten;156 pj_ssize_t size_eaten; 157 157 const pj_sockaddr *src_addr = &rdata->pkt_info.src_addr; 158 158 -
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5006 r5035 1011 1011 : winId(win_id) 1012 1012 { 1013 #if !PJSUA_HAS_VIDEO 1014 /* Suppress warning of unused field when video is disabled */ 1015 PJ_UNUSED_ARG(winId); 1016 #endif 1013 1017 } 1014 1018
Note: See TracChangeset
for help on using the changeset viewer.