diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 17:42:33 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 17:42:33 +0000 |
commit | 61e31de98b97f556cfb2a0cafa172bde673e7859 (patch) | |
tree | f92c3c42107f89a7de7b3c489527b3b6a2421078 /tntconfig.cpp | |
parent | c5cb6d2e099c9ae44cc3d26e4800c9f9101852e7 (diff) | |
download | vdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.gz vdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.bz2 |
- removed thread-unsafe call of cPlugin::ConfigDirectory and replaced it with Plugin::GetConfigDirectory
- implemented proper shutdown of server thread on vdr termination
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r-- | tntconfig.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp index 60bfad2..2036a46 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -4,6 +4,7 @@ #include <sstream> #include <stdexcept> #include <vdr/plugin.h> +#include "live.h" #include "setup.h" #include "tntconfig.h" @@ -21,7 +22,7 @@ void TntConfig::WriteConfig() WriteProperties(); ostringstream builder; - builder << cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ) << "/httpd.config"; + builder << Plugin::GetConfigDirectory() << "/httpd.config"; m_configPath = builder.str(); ofstream file( m_configPath.c_str(), ios::out | ios::trunc ); @@ -47,7 +48,7 @@ void TntConfig::WriteConfig() void TntConfig::WriteProperties() { ostringstream builder; - builder << cPlugin::ConfigDirectory( PLUGIN_NAME_I18N ) << "/httpd.properties"; + builder << Plugin::GetConfigDirectory() << "/httpd.properties"; m_propertiesPath = builder.str(); ofstream file( m_propertiesPath.c_str(), ios::out | ios::trunc ); |