From 283d990e76f2d46e030e22ec97e1bc7b27bbf0ba Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 21 Sep 2014 20:43:11 +0200 Subject: Fix (maybe) the pulseaudio check? --- src/simplertp.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/simplertp.cc b/src/simplertp.cc index 9a0a938..7d1dec1 100644 --- a/src/simplertp.cc +++ b/src/simplertp.cc @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) { int pulse = system("pidof pulseaudio &> /dev/null"); - if(pulse == 0) { + if(WEXITSTATUS(pulse) == 0) { printf("Pulse audio is running - simplertp wont work...\n"); return 1; } @@ -58,9 +58,6 @@ int main(int argc, char *argv[]) unsigned int ssrc = settings.value("ssrc").toUInt(); settings.endGroup(); - // printf("Key: %s\n", key.toStdString().c_str()); - // printf("SSrc: %u\n", ssrc); - if(key == "" || ssrc == 0) { printf("Missing key/ssrc in config.\n"); return 1; -- cgit v1.2.3