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
b0dcc696
Commit
b0dcc696
authored
Apr 12, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: open device node to list devices if required
parent
0150650e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/audio_output/oss.c
modules/audio_output/oss.c
+10
-1
No files found.
modules/audio_output/oss.c
View file @
b0dcc696
...
...
@@ -363,7 +363,12 @@ static int DevicesEnum (audio_output_t *aout, char ***idp, char ***namep)
oss_sysinfo
si
;
if
(
fd
==
-
1
)
return
-
1
;
{
fd
=
vlc_open
(
"/dev/dsp"
,
O_WRONLY
);
if
(
fd
==
-
1
)
return
-
1
;
}
if
(
ioctl
(
fd
,
SNDCTL_SYSINFO
,
&
si
)
<
0
)
{
msg_Err
(
aout
,
"cannot get system infos: %m"
);
...
...
@@ -397,8 +402,12 @@ static int DevicesEnum (audio_output_t *aout, char ***idp, char ***namep)
names
[
n
]
=
xstrdup
(
ai
.
name
);
n
++
;
}
*
idp
=
ids
;
*
namep
=
names
;
if
(
sys
->
fd
==
-
1
)
close
(
fd
);
return
n
;
}
...
...
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