Commit b62a0c97 authored by smorlat's avatar smorlat
Browse files

fix crash when compiled with --disable-video



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@367 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent fe014243
......@@ -1443,7 +1443,7 @@ static void post_configure_audio_streams(LinphoneCore *lc){
MSFilter *f=NULL;
if (st->el_type==ELControlMic){
f=st->volsend;
if (speed==-1) speed=0.15;
if (speed==-1) speed=0.03;
if (force==-1) force=10;
}
else if (st->el_type==ELControlSpeaker){
......@@ -2159,7 +2159,7 @@ int linphone_core_set_video_device(LinphoneCore *lc, const char *id){
if (olddev!=NULL && olddev!=lc->video_conf.device){
toggle_video_preview(lc,FALSE);/*restart the video local preview*/
}
if (lc->ready){
if (lc->ready && lc->video_conf.device){
vd=ms_web_cam_get_string_id(lc->video_conf.device);
if (vd && strstr(vd,"Static picture")!=NULL){
vd=NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment