Commit 304361ad authored by Guillaume Beraudo's avatar Guillaume Beraudo

Remove trailing spaces on linphonec call with options

parent bddbdc7c
......@@ -558,10 +558,12 @@ lpc_cmd_call(LinphoneCore *lc, char *args)
opt2=strstr(args,"--early-media");
if (opt1){
opt1[0]='\0';
while(--opt1 > args && opt1[0]==' ') opt1[0]='\0';
linphone_call_params_enable_video (cp,FALSE);
}
if (opt2){
opt2[0]='\0';
while(--opt2 > args && opt2[0]==' ') opt2[0]='\0';
linphone_call_params_enable_early_media_sending(cp,TRUE);
}
if ( NULL == (call=linphone_core_invite_with_params(lc, args,cp)) )
......
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