Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
5680686f
Commit
5680686f
authored
Aug 22, 2013
by
Tristan Matthews
Browse files
alsa: log error message if snd_ctl_pcm_info fails
parent
721a9d4c
Changes
1
Show whitespace changes
Inline
Side-by-side
daemon/src/audio/alsa/alsalayer.cpp
View file @
5680686f
...
...
@@ -602,8 +602,9 @@ AlsaLayer::getAudioDeviceIndexMap(bool getCapture) const
snd_pcm_info_set_device
(
pcminfo
,
0
);
snd_pcm_info_set_stream
(
pcminfo
,
getCapture
?
SND_PCM_STREAM_CAPTURE
:
SND_PCM_STREAM_PLAYBACK
);
if
(
snd_ctl_pcm_info
(
handle
,
pcminfo
)
<
0
)
{
DEBUG
(
" Cannot get info"
);
int
err
;
if
((
err
=
snd_ctl_pcm_info
(
handle
,
pcminfo
))
<
0
)
{
WARN
(
"Cannot get info: %s"
,
snd_strerror
(
err
));
}
else
{
DEBUG
(
"card %i : %s [%s]"
,
numCard
,
...
...
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