From fe0142438a133e95f767873c01ba20d3b5c61f4c Mon Sep 17 00:00:00 2001 From: smorlat Date: Tue, 24 Mar 2009 22:24:49 +0000 Subject: [PATCH] fix compile warning. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@366 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/linphonecore.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c index 6fd620bfc..e0c1c3354 100644 --- a/linphone/coreapi/linphonecore.c +++ b/linphone/coreapi/linphonecore.c @@ -1440,7 +1440,7 @@ static void post_configure_audio_streams(LinphoneCore *lc){ float speed=lp_config_get_float(lc->config,"sound","el_speed",-1); float thres=lp_config_get_float(lc->config,"sound","el_thres",-1); float force=lp_config_get_float(lc->config,"sound","el_force",-1); - MSFilter *f; + MSFilter *f=NULL; if (st->el_type==ELControlMic){ f=st->volsend; if (speed==-1) speed=0.15; @@ -1450,7 +1450,10 @@ static void post_configure_audio_streams(LinphoneCore *lc){ f=st->volrecv; if (speed==-1) speed=0.02; if (force==-1) force=5; - }else ms_fatal("Should not happen"); + }else { + ms_fatal("Should not happen"); + return; + } if (speed!=-1) ms_filter_call_method(f,MS_VOLUME_SET_EA_SPEED,&speed); if (thres!=-1)