Changeset 4921
- Timestamp:
- Sep 15, 2014 8:59:46 AM (10 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r4920 r4921 6565 6565 */ 6566 6566 unsigned wnd_flags; 6567 6568 /** 6569 * Media format. Initialize this with #pjmedia_format_init_video(). 6570 * If left unitialized, this parameter will not be used. 6571 */ 6572 pjmedia_format format; 6567 6573 6568 6574 } pjsua_vid_preview_param; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r4903 r4921 188 188 p->show = PJ_TRUE; 189 189 p->wnd_flags = 0; 190 pj_bzero(&p->format, sizeof(p->format)); 190 191 } 191 192 … … 1067 1068 pjmedia_vid_dev_index rend_id; 1068 1069 pjsua_vid_preview_param default_param; 1070 const pjmedia_format *fmt = NULL; 1069 1071 pj_status_t status; 1070 1072 … … 1082 1084 rend_id = prm->rend_id; 1083 1085 1084 status = create_vid_win(PJSUA_WND_TYPE_PREVIEW, NULL, rend_id, id, 1086 if (prm->format.detail_type == PJMEDIA_FORMAT_DETAIL_VIDEO) 1087 fmt = &prm->format; 1088 status = create_vid_win(PJSUA_WND_TYPE_PREVIEW, fmt, rend_id, id, 1085 1089 prm->show, prm->wnd_flags, &wid); 1086 1090 if (status != PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.