From acdab088cf4971ce2913faaf9eb05f9da628f1be Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 7 Nov 2023 22:30:04 +0100 Subject: Dont enumerate audio devices if no audio input is specified --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index c76a491..53d936c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1332,7 +1332,9 @@ int main(int argc, char **argv) { } const Arg &audio_input_arg = args["-a"]; - const std::vector audio_inputs = get_pulseaudio_inputs(); + std::vector audio_inputs; + if(!audio_input_arg.values.empty()) + audio_inputs = get_pulseaudio_inputs(); std::vector requested_audio_inputs; // Manually check if the audio inputs we give exist. This is only needed for pipewire, not pulseaudio. -- cgit v1.2.3