Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
35f2f508
Commit
35f2f508
authored
Feb 12, 2016
by
Gautier Pelloux-Prayer
Browse files
commands.c: disable files usage if we are using "soundcard use <index>"
parent
da9c8393
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/commands.c
View file @
35f2f508
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment