From f9a3b9b00fbd92072c72bf1cb0de7052f12d93d3 Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Thu, 5 Jul 2012 13:28:23 +1000 Subject: [PATCH] Gst audio input: use autoaudiosrc as default device Currently pulsesrc element is selected if it's installed, even if pulseaudio is not used. Change-Id: I7e23e647767116955e24e3681155f9cb5f6d8574 Reviewed-by: Michael Goddard --- src/gsttools/qgstreameraudioinputendpointselector.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gsttools/qgstreameraudioinputendpointselector.cpp b/src/gsttools/qgstreameraudioinputendpointselector.cpp index 1f9abd7..8ee6c3e 100644 --- a/src/gsttools/qgstreameraudioinputendpointselector.cpp +++ b/src/gsttools/qgstreameraudioinputendpointselector.cpp @@ -103,6 +103,11 @@ void QGstreamerAudioInputEndpointSelector::update() { m_names.clear(); m_descriptions.clear(); + + //use autoaudiosrc as the first default device + m_names.append("default:"); + m_descriptions.append(tr("System default device")); + updatePulseDevices(); updateAlsaDevices(); updateOssDevices(); -- 2.7.4