Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e0499d38
Commit
e0499d38
authored
Jul 18, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: use default device if none specified instead of failing
parent
063bfc5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+8
-7
No files found.
modules/audio_output/alsa.c
View file @
e0499d38
...
@@ -345,14 +345,15 @@ static int Open( vlc_object_t *p_this )
...
@@ -345,14 +345,15 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
/* Get device name */
/* Get device name */
if
(
(
psz_device
=
var_InheritString
(
p_aout
,
"alsa-audio-device"
))
==
NULL
)
psz_device
=
var_InheritString
(
p_aout
,
"alsa-audio-device"
);
if
(
unlikely
(
psz_device
==
NULL
)
)
{
psz_device
=
strdup
(
DEFAULT_ALSA_DEVICE
);
if
(
unlikely
(
psz_device
==
NULL
)
)
{
{
msg_Err
(
p_aout
,
"no audio device given (maybe
\"
default
\"
?)"
);
dialog_Fatal
(
p_aout
,
_
(
"No Audio Device"
),
"%s"
,
_
(
"No audio device name was given. You might want to "
\
"enter
\"
default
\"
."
)
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_ENOMEM
;
}
}
}
/* Choose the IEC device for S/PDIF output:
/* Choose the IEC device for S/PDIF output:
...
...
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