Changeset 3793 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Oct 6, 2011 6:05:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r3790 r3793 828 828 pjsua_vid_win *w; 829 829 pjsua_vid_win_id wid; 830 pj_bool_t just_created = PJ_FALSE; 830 831 831 832 PJ_LOG(4,(THIS_FILE, "Setting up TX..")); … … 860 861 return status; 861 862 } 863 just_created = PJ_TRUE; 862 864 } 863 865 … … 884 886 885 887 /* Start capturer */ 886 status = pjmedia_vid_port_start(w->vp_cap); 887 if (status != PJ_SUCCESS) { 888 pj_log_pop_indent(); 889 goto on_error; 888 if (just_created) { 889 status = pjmedia_vid_port_start(w->vp_cap); 890 if (status != PJ_SUCCESS) { 891 pj_log_pop_indent(); 892 goto on_error; 893 } 890 894 } 891 895
Note: See TracChangeset
for help on using the changeset viewer.