diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-18 14:03:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-18 14:03:22 +0200 |
commit | bdccbbe93e9729944787d3158bee7a755d3bf286 (patch) | |
tree | 17073d49ff0d2d94672c7301a7771f0b2724e42e /vdr.c | |
parent | 3e5b31af5e88bc4e43971a70b5add6f67cebb701 (diff) | |
download | vdr-bdccbbe93e9729944787d3158bee7a755d3bf286.tar.gz vdr-bdccbbe93e9729944787d3158bee7a755d3bf286.tar.bz2 |
Completely moved OSD handling out of the cDvbApi class, into the new cOsd
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.111 2002/05/18 12:35:34 kls Exp $ + * $Id: vdr.c 1.112 2002/05/18 14:03:22 kls Exp $ */ #include <getopt.h> @@ -36,6 +36,7 @@ #include "i18n.h" #include "interface.h" #include "menu.h" +#include "osd.h" #include "plugin.h" #include "recording.h" #include "tools.h" @@ -322,7 +323,7 @@ int main(int argc, char *argv[]) // DVB interfaces: - if (!cDvbApi::Init()) + if (!cDvbApi::Initialize()) return 2; cDvbApi::SetPrimaryDvbApi(Setup.PrimaryDVB); @@ -334,6 +335,10 @@ int main(int argc, char *argv[]) if (!PluginManager.StartPlugins()) return 2; + // OSD: + + cOsd::Initialize(); + // Channel: Channels.SwitchTo(Setup.CurrentChannel); @@ -592,11 +597,12 @@ int main(int argc, char *argv[]) delete Menu; delete ReplayControl; delete Interface; + cOsd::Shutdown(); PluginManager.Shutdown(true); Setup.CurrentChannel = cDvbApi::CurrentChannel(); Setup.CurrentVolume = cDvbApi::CurrentVolume(); Setup.Save(); - cDvbApi::Cleanup(); + cDvbApi::Shutdown(); if (WatchdogTimeout > 0) dsyslog("max. latency time %d seconds", MaxLatencyTime); isyslog("exiting"); |