Changeset 4995 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Mar 17, 2015 9:59:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r4921 r4995 189 189 p->wnd_flags = 0; 190 190 pj_bzero(&p->format, sizeof(p->format)); 191 pj_bzero(&p->wnd, sizeof(p->wnd)); 191 192 } 192 193 … … 439 440 pj_bool_t show, 440 441 unsigned wnd_flags, 442 const pjmedia_vid_dev_hwnd *wnd, 441 443 pjsua_vid_win_id *id) 442 444 { … … 607 609 vp_param.vidparam.flags |= PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW_FLAGS; 608 610 vp_param.vidparam.window_flags = wnd_flags; 611 if (wnd) { 612 vp_param.vidparam.flags |= PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW; 613 vp_param.vidparam.window = *wnd; 614 } 609 615 610 616 status = pjmedia_vid_port_create(w->pool, &vp_param, &w->vp_rend); … … 847 853 acc->cfg.vid_in_auto_show, 848 854 acc->cfg.vid_wnd_flags, 855 NULL, 849 856 &wid); 850 857 if (status != PJ_SUCCESS) { … … 917 924 PJSUA_HIDE_WINDOW, 918 925 acc->cfg.vid_wnd_flags, 926 NULL, 919 927 &wid); 920 928 if (status != PJ_SUCCESS) { … … 1087 1095 fmt = &prm->format; 1088 1096 status = create_vid_win(PJSUA_WND_TYPE_PREVIEW, fmt, rend_id, id, 1089 prm->show, prm->wnd_flags, &wid); 1097 prm->show, prm->wnd_flags, 1098 (prm->wnd.info.window? &prm->wnd: NULL), &wid); 1090 1099 if (status != PJ_SUCCESS) { 1091 1100 PJSUA_UNLOCK(); … … 1921 1930 PJSUA_HIDE_WINDOW, 1922 1931 acc->cfg.vid_wnd_flags, 1932 NULL, 1923 1933 &new_wid); 1924 1934 if (status != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.