From 61e31de98b97f556cfb2a0cafa172bde673e7859 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 4 Jan 2007 17:42:33 +0000 Subject: - removed thread-unsafe call of cPlugin::ConfigDirectory and replaced it with Plugin::GetConfigDirectory - implemented proper shutdown of server thread on vdr termination --- live.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'live.cpp') diff --git a/live.cpp b/live.cpp index 88f4718..fd83cb4 100644 --- a/live.cpp +++ b/live.cpp @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: live.cpp,v 1.6 2007/01/04 15:02:00 lordjaxom Exp $ + * $Id: live.cpp,v 1.7 2007/01/04 17:42:33 lordjaxom Exp $ */ #include @@ -20,8 +20,11 @@ using namespace std; const char *Plugin::VERSION = "0.0.1"; const char *Plugin::DESCRIPTION = "Live Integrated VDR Environment"; +std::string Plugin::m_configDirectory; + Plugin::Plugin(void) { + m_configDirectory = cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ); } const char *Plugin::CommandLineHelp(void) @@ -45,6 +48,7 @@ bool Plugin::Start(void) void Plugin::Stop(void) { + m_thread->Stop(); } void Plugin::MainThreadHook(void) -- cgit v1.2.3