- Timestamp:
- Jul 13, 2011 8:51:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3632 r3634 1314 1314 1315 1315 /* Initialize the media line */ 1316 staticpj_status_t pjsua_call_media_init(pjsua_call_media *call_med,1317 1318 1319 1320 1316 pj_status_t pjsua_call_media_init(pjsua_call_media *call_med, 1317 pjmedia_type type, 1318 const pjsua_transport_config *tcfg, 1319 int security_level, 1320 int *sip_err_code) 1321 1321 { 1322 1322 pjsua_acc *acc = &pjsua_var.acc[call_med->call->acc_id]; … … 1343 1343 1344 1344 call_med->tp_st = PJSUA_MED_TP_IDLE; 1345 1346 /* While in initial call, set default video devices */ 1347 if (type == PJMEDIA_TYPE_VIDEO) { 1348 call_med->strm.v.rdr_dev = acc->cfg.vid_rend_dev; 1349 call_med->strm.v.cap_dev = acc->cfg.vid_cap_dev; 1350 if (call_med->strm.v.rdr_dev == PJMEDIA_VID_DEFAULT_RENDER_DEV) { 1351 pjmedia_vid_dev_info info; 1352 pjmedia_vid_dev_get_info(call_med->strm.v.rdr_dev, &info); 1353 call_med->strm.v.rdr_dev = info.id; 1354 } 1355 if (call_med->strm.v.cap_dev == PJMEDIA_VID_DEFAULT_CAPTURE_DEV) { 1356 pjmedia_vid_dev_info info; 1357 pjmedia_vid_dev_get_info(call_med->strm.v.cap_dev, &info); 1358 call_med->strm.v.cap_dev = info.id; 1359 } 1360 } 1345 1361 } else if (call_med->tp_st == PJSUA_MED_TP_DISABLED) { 1346 1362 /* Media is being reenabled. */
Note: See TracChangeset
for help on using the changeset viewer.