summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-09 15:27:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-09 15:27:46 +0200
commitdc8fd12f91713c2eec49ae38ab34f09fd7e73369 (patch)
treedb9d260ccc995af10dbec6b7e1485679f600a341 /vdr.c
parentaaeaf4582dd40677965f562283cf67cf0986eb65 (diff)
downloadvdr-dc8fd12f91713c2eec49ae38ab34f09fd7e73369.tar.gz
vdr-dc8fd12f91713c2eec49ae38ab34f09fd7e73369.tar.bz2
Introduced cPlugin::Initialize()
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/vdr.c b/vdr.c
index ae4edd56..0b1e8e3c 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.152 2003/05/03 13:39:57 kls Exp $
+ * $Id: vdr.c 1.153 2003/05/09 14:14:13 kls Exp $
*/
#include <getopt.h>
@@ -355,9 +355,9 @@ int main(int argc, char *argv[])
cDvbDevice::Initialize();
- // Start plugins:
+ // Initialize plugins:
- if (!PluginManager.StartPlugins())
+ if (!PluginManager.InitializePlugins())
return 2;
// Primary device:
@@ -437,6 +437,18 @@ int main(int argc, char *argv[])
if (WatchdogTimeout > 0)
if (signal(SIGALRM, Watchdog) == SIG_IGN) signal(SIGALRM, SIG_IGN);
+ // Watchdog:
+
+ if (WatchdogTimeout > 0) {
+ dsyslog("setting watchdog timer to %d seconds", WatchdogTimeout);
+ alarm(WatchdogTimeout); // Initial watchdog timer start
+ }
+
+ // Start plugins:
+
+ if (!PluginManager.StartPlugins())
+ return 2;
+
// Main program loop:
cOsdObject *Menu = NULL;
@@ -448,11 +460,6 @@ int main(int argc, char *argv[])
bool ForceShutdown = false;
bool UserShutdown = false;
- if (WatchdogTimeout > 0) {
- dsyslog("setting watchdog timer to %d seconds", WatchdogTimeout);
- alarm(WatchdogTimeout); // Initial watchdog timer start
- }
-
while (!Interrupted) {
// Handle emergency exits:
if (cThread::EmergencyExit()) {