summaryrefslogtreecommitdiff
path: root/src/simplertp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/simplertp.cc')
-rw-r--r--src/simplertp.cc5
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;