Changeset 5961 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Mar 29, 2019 1:52:59 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r5960 r5961 1146 1146 1147 1147 /* Start capturer */ 1148 if (just_created ) {1148 if (just_created && acc->cfg.vid_out_auto_transmit) { 1149 1149 status = pjmedia_vid_port_start(w->vp_cap); 1150 1150 if (status != PJ_SUCCESS) { … … 1152 1152 goto on_error; 1153 1153 } 1154 w->cap_started = PJ_TRUE; 1154 1155 } 1155 1156 … … 2258 2259 2259 2260 if (enable) { 2260 /* Start stream in encoding direction */ 2261 pjsua_vid_win *w; 2262 pjsua_vid_win_id wid; 2263 2264 wid = vid_preview_get_win(call_med->strm.v.cap_dev, PJ_FALSE); 2265 pj_assert(wid != PJSUA_INVALID_ID); 2266 2267 w = &pjsua_var.win[wid]; 2268 2269 if (!w->cap_started) { 2270 /* Start the video capture first */ 2271 status = pjmedia_vid_port_start(w->vp_cap); 2272 if (status != PJ_SUCCESS) 2273 return status; 2274 w->cap_started = PJ_TRUE; 2275 } 2276 2277 /* Resume stream in encoding direction */ 2261 2278 status = pjmedia_vid_stream_resume(call_med->strm.v.stream, 2262 2279 PJMEDIA_DIR_ENCODING);
Note: See TracChangeset
for help on using the changeset viewer.