Changeset 4996 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Mar 18, 2015 8:25:24 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r4995 r4996 1399 1399 status = pjmedia_vid_dev_stream_set_cap(s, 1400 1400 PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE, size); 1401 1402 PJSUA_UNLOCK(); 1403 1404 return status; 1405 } 1406 1407 /* 1408 * Set output window. 1409 */ 1410 PJ_DEF(pj_status_t) pjsua_vid_win_set_win( pjsua_vid_win_id wid, 1411 const pjmedia_vid_dev_hwnd *win) 1412 { 1413 pjsua_vid_win *w; 1414 pjmedia_vid_dev_stream *s; 1415 pj_status_t status; 1416 1417 PJ_ASSERT_RETURN(wid >= 0 && wid < PJSUA_MAX_VID_WINS && win, PJ_EINVAL); 1418 1419 PJSUA_LOCK(); 1420 w = &pjsua_var.win[wid]; 1421 if (w->vp_rend == NULL) { 1422 /* Native window */ 1423 PJSUA_UNLOCK(); 1424 return PJ_EINVAL; 1425 } 1426 1427 s = pjmedia_vid_port_get_stream(w->vp_rend); 1428 if (s == NULL) { 1429 PJSUA_UNLOCK(); 1430 return PJ_EINVAL; 1431 } 1432 1433 status = pjmedia_vid_dev_stream_set_cap(s, 1434 PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW, win); 1401 1435 1402 1436 PJSUA_UNLOCK();
Note: See TracChangeset
for help on using the changeset viewer.