From 35f2f5081af35c3e3d612f4d0da7bc7f0fea3063 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 12 Feb 2016 15:42:46 +0100 Subject: [PATCH] commands.c: disable files usage if we are using "soundcard use " --- console/commands.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/commands.c b/console/commands.c index 5fca480a6..490e6d400 100644 --- a/console/commands.c +++ b/console/commands.c @@ -1261,6 +1261,8 @@ static int lpc_cmd_soundcard(LinphoneCore *lc, char *args) return 1; } + linphone_core_use_files(lc,FALSE); + dev=linphone_core_get_sound_devices(lc); index=atoi(arg2); /* FIXME: handle not-a-number */ for(i=0;dev[i]!=NULL;i++) @@ -1276,6 +1278,7 @@ static int lpc_cmd_soundcard(LinphoneCore *lc, char *args) linphonec_out("No such sound device\n"); return 1; } + if (strcmp(arg1, "capture")==0) { const char *devname=linphone_core_get_capture_device(lc);