Changeset 5626
- Timestamp:
- Jul 18, 2017 12:43:43 AM (7 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pjsua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c
r5542 r5626 2175 2175 case CMD_VIDEO_ACC_REN_ID: 2176 2176 { 2177 int dev = pj_strtol(&cval->argv[1]);2177 int dev = (int)pj_strtol(&cval->argv[1]); 2178 2178 2179 2179 if (cmd_id == CMD_VIDEO_ACC_CAP_ID) … … 2204 2204 pjsua_call_vid_strm_op_param_default(¶m); 2205 2205 2206 param.med_idx = pj_strtol(&cval->argv[2]);2206 param.med_idx = (int)pj_strtol(&cval->argv[2]); 2207 2207 if (pjsua_call_get_stream_info(current_call, param.med_idx, &si) || 2208 2208 si.type != PJMEDIA_TYPE_VIDEO) … … 2232 2232 pjsua_call_vid_strm_op_param_default(¶m); 2233 2233 2234 param.med_idx = pj_strtol(&cval->argv[2]);2234 param.med_idx = (int)pj_strtol(&cval->argv[2]); 2235 2235 2236 2236 status = pjsua_call_set_vid_strm(current_call, op, ¶m); … … 2247 2247 pjsua_call_vid_strm_op_param_default(¶m); 2248 2248 2249 param.med_idx = cval->argc > 1 ? pj_strtol(&cval->argv[1]) : -1; 2249 param.med_idx = cval->argc > 1 ? 2250 (int)pj_strtol(&cval->argv[1]) : -1; 2250 2251 param.dir = PJMEDIA_DIR_ENCODING_DECODING; 2251 2252 return pjsua_call_set_vid_strm(current_call, op, ¶m); … … 2257 2258 2258 2259 pjsua_call_vid_strm_op_param_default(¶m); 2259 param.med_idx = cval->argc > 1? pj_strtol(&cval->argv[1]) : -1; 2260 param.cap_dev = cval->argc > 2? pj_strtol(&cval->argv[2]) : 2261 PJMEDIA_VID_DEFAULT_CAPTURE_DEV; 2260 param.med_idx = cval->argc > 1? 2261 (int)pj_strtol(&cval->argv[1]) : -1; 2262 param.cap_dev = cval->argc > 2? 2263 (int)pj_strtol(&cval->argv[2]) : 2264 PJMEDIA_VID_DEFAULT_CAPTURE_DEV; 2262 2265 2263 2266 return pjsua_call_set_vid_strm(current_call, … … 2280 2283 static pj_status_t cmd_vid_device_preview(pj_cli_cmd_val *cval) 2281 2284 { 2282 int dev_id = pj_strtol(&cval->argv[2]);2285 int dev_id = (int)pj_strtol(&cval->argv[2]); 2283 2286 pj_bool_t on = (pj_ansi_strnicmp(cval->argv[1].ptr, "On", 2) == 0); 2284 2287 … … 2340 2343 static pj_status_t cmd_set_vid_codec_prio(pj_cli_cmd_val *cval) 2341 2344 { 2342 int prio = pj_strtol(&cval->argv[2]);2345 int prio = (int)pj_strtol(&cval->argv[2]); 2343 2346 pj_status_t status; 2344 2347 … … 2356 2359 pj_status_t status; 2357 2360 2358 M = pj_strtol(&cval->argv[2]);2359 N = pj_strtol(&cval->argv[3]);2361 M = (int)pj_strtol(&cval->argv[2]); 2362 N = (int)pj_strtol(&cval->argv[3]); 2360 2363 status = pjsua_vid_codec_get_param(&cval->argv[1], &cp); 2361 2364 if (status == PJ_SUCCESS) { … … 2376 2379 pj_status_t status; 2377 2380 2378 M = pj_strtol(&cval->argv[2]);2379 N = pj_strtol(&cval->argv[3]);2381 M = (int)pj_strtol(&cval->argv[2]); 2382 N = (int)pj_strtol(&cval->argv[3]); 2380 2383 status = pjsua_vid_codec_get_param(&cval->argv[1], &cp); 2381 2384 if (status == PJ_SUCCESS) { … … 2396 2399 pj_status_t status; 2397 2400 2398 M = pj_strtol(&cval->argv[2]);2399 N = pj_strtol(&cval->argv[3]);2401 M = (int)pj_strtol(&cval->argv[2]); 2402 N = (int)pj_strtol(&cval->argv[3]); 2400 2403 status = pjsua_vid_codec_get_param(&cval->argv[1], &cp); 2401 2404 if (status == PJ_SUCCESS) { … … 2438 2441 static pj_status_t cmd_show_vid_win(pj_cli_cmd_val *cval, pj_bool_t show) 2439 2442 { 2440 pjsua_vid_win_id wid = pj_strtol(&cval->argv[1]);2443 pjsua_vid_win_id wid = (int)pj_strtol(&cval->argv[1]); 2441 2444 return pjsua_vid_win_set_show(wid, show); 2442 2445 } … … 2444 2447 static pj_status_t cmd_move_vid_win(pj_cli_cmd_val *cval) 2445 2448 { 2446 pjsua_vid_win_id wid = pj_strtol(&cval->argv[1]);2449 pjsua_vid_win_id wid = (int)pj_strtol(&cval->argv[1]); 2447 2450 pjmedia_coord pos; 2448 2451 2449 pos.x = pj_strtol(&cval->argv[2]);2450 pos.y = pj_strtol(&cval->argv[3]);2452 pos.x = (int)pj_strtol(&cval->argv[2]); 2453 pos.y = (int)pj_strtol(&cval->argv[3]); 2451 2454 return pjsua_vid_win_set_pos(wid, &pos); 2452 2455 } … … 2454 2457 static pj_status_t cmd_resize_vid_win(pj_cli_cmd_val *cval) 2455 2458 { 2456 pjsua_vid_win_id wid = pj_strtol(&cval->argv[1]);2459 pjsua_vid_win_id wid = (int)pj_strtol(&cval->argv[1]); 2457 2460 pjmedia_rect_size size; 2458 2461 2459 size.w = pj_strtol(&cval->argv[2]);2460 size.h = pj_strtol(&cval->argv[3]);2462 size.w = (int)pj_strtol(&cval->argv[2]); 2463 size.h = (int)pj_strtol(&cval->argv[3]); 2461 2464 return pjsua_vid_win_set_size(wid, &size); 2462 2465 } -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_common.c
r5461 r5626 291 291 const char *capname = pjmedia_vid_dev_cap_name(1 << i, NULL); 292 292 if (capname) { 293 int tmp_len = strlen(capname);293 int tmp_len = (int)strlen(capname); 294 294 if ((int)sizeof(capnames) - st_len <= tmp_len) 295 295 break; … … 309 309 pjmedia_get_video_format_info(NULL, vdi->fmt[i].id); 310 310 if (vfi) { 311 int tmp_len = strlen(vfi->name);311 int tmp_len = (int)strlen(vfi->name); 312 312 if ((int)sizeof(formats) - st_len <= tmp_len) { 313 313 st_len = -1;
Note: See TracChangeset
for help on using the changeset viewer.