diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-07-25 14:55:21 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-07-25 14:55:21 +0200 |
commit | 7b7efb98cd5ffe40e91d9aeddd41c9c7973e717a (patch) | |
tree | bfd68525124c06ecc4d2ef4f58f7b54aa1cc23d7 /src/DabMod.cpp | |
parent | 2ac0dbaa6c13ad7828c6a8171a8c0818111a5177 (diff) | |
download | dabmod-7b7efb98cd5ffe40e91d9aeddd41c9c7973e717a.tar.gz dabmod-7b7efb98cd5ffe40e91d9aeddd41c9c7973e717a.tar.bz2 dabmod-7b7efb98cd5ffe40e91d9aeddd41c9c7973e717a.zip |
Initialise RC correctly when using cmdline
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 6e41dd2..14c7c4b 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -362,10 +362,6 @@ int main(int argc, char* argv[]) goto END_MAIN; } } - else { - rc = new RemoteControllerDummy(); - } - // input params: if (pt.get("input.loop", 0) == 1) { @@ -567,6 +563,11 @@ int main(int argc, char* argv[]) outputuhd_conf.muteNoTimestamps = (pt.get("delaymanagement.mutenotimestamps", 0) == 1); #endif } + if (!rc) { + logger.level(warn) << "No Remote-Control started"; + rc = new RemoteControllerDummy(); + } + logger.level(info) << "Starting up"; |