From b62a0c970a272cf71fc4e63d9a53593c93fa36f3 Mon Sep 17 00:00:00 2001 From: smorlat Date: Tue, 24 Mar 2009 22:43:14 +0000 Subject: [PATCH] fix crash when compiled with --disable-video git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@367 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/linphonecore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c index e0c1c3354..2a5348bd1 100644 --- a/linphone/coreapi/linphonecore.c +++ b/linphone/coreapi/linphonecore.c @@ -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;