summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-10-29 14:00:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-10-29 14:00:00 +0100
commit10741c4c5447f042bdf365f36b258f2f7a2e5d39 (patch)
tree3060b612b65067100573e7c4e9ca01d7b313639a /vdr.c
parente6999e9b3a5f584de2f40ca833effe5ff5636f6a (diff)
downloadvdr-10741c4c5447f042bdf365f36b258f2f7a2e5d39.tar.gz
vdr-10741c4c5447f042bdf365f36b258f2f7a2e5d39.tar.bz2
Fixed initializing the RCU code
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/vdr.c b/vdr.c
index c8cabb0b..268f45b9 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.39 2000/10/08 14:49:25 kls Exp $
+ * $Id: vdr.c 1.40 2000/10/29 14:00:00 kls Exp $
*/
#include <getopt.h>
@@ -161,10 +161,6 @@ int main(int argc, char *argv[])
if (!cDvbApi::Init())
abort();
- // User interface:
-
- Interface = new cInterface(SVDRPport);
-
// Configuration data:
if (!ConfigDirectory)
@@ -176,14 +172,21 @@ int main(int argc, char *argv[])
#ifdef REMOTE_LIRC
Keys.SetDummyValues();
#else
- if (!Keys.Load(AddDirectory(ConfigDirectory, KEYS_CONF)))
- Interface->LearnKeys();
+ bool KeysLoaded = Keys.Load(AddDirectory(ConfigDirectory, KEYS_CONF));
#endif
cDvbApi::SetPrimaryDvbApi(Setup.PrimaryDVB);
Channels.SwitchTo(CurrentChannel);
+ // User interface:
+
+ Interface = new cInterface(SVDRPport);
+#ifndef REMOTE_LIRC
+ if (!KeysLoaded)
+ Interface->LearnKeys();
+#endif
+
// Signal handlers:
if (signal(SIGHUP, SignalHandler) == SIG_IGN) signal(SIGHUP, SIG_IGN);