Commit fbe71a66 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udev: do not list ALSA SD if PulseAudio SD exists (refs #7221)

parent 8942c7d9
......@@ -24,16 +24,19 @@
# include <config.h>
#endif
#include <errno.h>
#include <search.h>
#include <poll.h>
#include <libudev.h>
#include <vlc_common.h>
#include <vlc_services_discovery.h>
#include <vlc_plugin.h>
#include <vlc_url.h>
#ifdef HAVE_SEARCH_H
# include <search.h>
#ifdef HAVE_ALSA
# include <vlc_modules.h>
#endif
#include <poll.h>
#include <errno.h>
#include <vlc_url.h>
static int OpenV4L (vlc_object_t *);
#ifdef HAVE_ALSA
......@@ -91,6 +94,7 @@ 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
if (!module_exists ("pulselist"))
vlc_sd_probe_Add (probe, "alsa{longname=\"Audio capture\"}",
N_("Audio capture"), SD_CAT_DEVICES);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment