Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
45db0215
Commit
45db0215
authored
Mar 16, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: log the device string that is actually opened
parent
8add728f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+4
-3
No files found.
modules/audio_output/alsa.c
View file @
45db0215
...
...
@@ -382,20 +382,21 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
const
int
mode
=
SND_PCM_NO_AUTO_RESAMPLE
;
int
val
=
snd_pcm_open
(
&
pcm
,
device
,
SND_PCM_STREAM_PLAYBACK
,
mode
);
free
(
devbuf
);
if
(
val
!=
0
)
{
msg_Err
(
aout
,
"cannot open ALSA device
\"
%s
\"
: %s"
,
sys
->
device
,
msg_Err
(
aout
,
"cannot open ALSA device
\"
%s
\"
: %s"
,
device
,
snd_strerror
(
val
));
dialog_Fatal
(
aout
,
_
(
"Audio output failed"
),
_
(
"The audio device
\"
%s
\"
could not be used:
\n
%s."
),
sys
->
device
,
snd_strerror
(
val
));
free
(
devbuf
);
return
VLC_EGENERIC
;
}
sys
->
pcm
=
pcm
;
/* Print some potentially useful debug */
msg_Dbg
(
aout
,
"using ALSA device: %s"
,
sys
->
device
);
msg_Dbg
(
aout
,
"using ALSA device: %s"
,
device
);
free
(
devbuf
);
DumpDevice
(
VLC_OBJECT
(
aout
),
pcm
);
/* Get Initial hardware parameters */
...
...
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