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
cd03ef9b
Commit
cd03ef9b
authored
Mar 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udev: fix build without ALSA
parent
110a4f7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+6
-2
No files found.
modules/services_discovery/udev.c
View file @
cd03ef9b
...
...
@@ -36,7 +36,9 @@
#include <errno.h>
static
int
OpenV4L
(
vlc_object_t
*
);
#ifdef HAVE_ALSA
static
int
OpenALSA
(
vlc_object_t
*
);
#endif
static
int
OpenDisc
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
...
...
@@ -52,7 +54,7 @@ vlc_module_begin ()
set_capability
(
"services_discovery"
,
0
)
set_callbacks
(
OpenV4L
,
Close
)
add_shortcut
(
"v4l"
)
#ifdef HAVE_ALSA
add_submodule
()
set_shortname
(
N_
(
"Audio capture"
))
set_description
(
N_
(
"Audio capture (ALSA)"
))
...
...
@@ -61,7 +63,7 @@ vlc_module_begin ()
set_capability
(
"services_discovery"
,
0
)
set_callbacks
(
OpenALSA
,
Close
)
add_shortcut
(
"alsa"
)
#endif
add_submodule
()
set_shortname
(
N_
(
"Discs"
))
set_description
(
N_
(
"Discs"
))
...
...
@@ -88,8 +90,10 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
{
vlc_sd_probe_Add
(
probe
,
"v4l{longname=
\"
Video capture
\"
}"
,
N_
(
"Video capture"
),
SD_CAT_DEVICES
);
#ifdef HAVE_ALSA
vlc_sd_probe_Add
(
probe
,
"alsa{longname=
\"
Audio capture
\"
}"
,
N_
(
"Audio capture"
),
SD_CAT_DEVICES
);
#endif
vlc_sd_probe_Add
(
probe
,
"disc{longname=
\"
Discs
\"
}"
,
N_
(
"Discs"
),
SD_CAT_DEVICES
);
udev_monitor_unref
(
mon
);
...
...
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