diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-21 20:43:11 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-21 20:43:11 +0200 |
commit | 283d990e76f2d46e030e22ec97e1bc7b27bbf0ba (patch) | |
tree | e511ba49bf2761da857b06ef7163345276173cba | |
parent | 8cb96bb66d3de04a3dae3e2c886c4a49736f1b65 (diff) |
Fix (maybe) the pulseaudio check?
-rw-r--r-- | src/simplertp.cc | 5 |
1 files changed, 1 insertions, 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; |