aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-15 18:11:47 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-15 18:12:33 +0200
commitbae4504370f335d64697a8d114174134b44d5f98 (patch)
tree919f6efac508ed149cd62d76f5465cffc01ef6fe /src/main.cpp
parent3ae89c8d7c25f23a70bdec34c6e43cfe916f2d0c (diff)
Install systemd service in install script, skip empty audio device
Stop systemd service with SIGINT
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2bbfd06..86567d1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1308,6 +1308,9 @@ int main(int argc, char **argv) {
// Pipewire instead DEFAULTS TO THE DEFAULT AUDIO INPUT. THAT'S RETARDED.
// OH, YOU MISSPELLED THE AUDIO INPUT? FUCK YOU
for(const char *audio_input : audio_input_arg.values) {
+ if(!audio_input || audio_input[0] == '\0')
+ continue;
+
requested_audio_inputs.push_back({parse_audio_input_arg(audio_input)});
for(AudioInput &request_audio_input : requested_audio_inputs.back().audio_inputs) {
bool match = false;