From dbd5d5b2a5a5220b3dfde46f3a042e38ce836936 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 30 Apr 2019 17:28:25 -0400 Subject: [PATCH] pulse-device: Hide the alsa device provider if we provide alsa devices --- ext/pulse/pulsedeviceprovider.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/pulse/pulsedeviceprovider.c b/ext/pulse/pulsedeviceprovider.c index 28b0de181d..4f69bf2ae6 100644 --- a/ext/pulse/pulsedeviceprovider.c +++ b/ext/pulse/pulsedeviceprovider.c @@ -207,6 +207,10 @@ new_source (GstPulseDeviceProvider * self, const pa_source_info * info) props = gst_pulse_make_structure (info->proplist); + if (!g_strcmp0 (gst_structure_get_string (props, "device.api"), "alsa")) + gst_device_provider_hide_provider (GST_DEVICE_PROVIDER (self), + "alsadeviceprovider"); + return gst_pulse_device_new (info->index, info->description, caps, info->name, GST_PULSE_DEVICE_TYPE_SOURCE, props, !g_strcmp0 (info->name, self->default_source_name));