diff options
Diffstat (limited to 'src/mov_encoder_writer.cc')
-rw-r--r-- | src/mov_encoder_writer.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mov_encoder_writer.cc b/src/mov_encoder_writer.cc index d533b81..0d9081b 100644 --- a/src/mov_encoder_writer.cc +++ b/src/mov_encoder_writer.cc @@ -59,7 +59,6 @@ MovEncoderWriter::MovEncoderWriter(const char *clientip, const char* cpr, // Create path and filename char fname[256]; string *server_root; - string *mcconfig_file; char birthmonth[3]; char date[32]; @@ -84,10 +83,7 @@ MovEncoderWriter::MovEncoderWriter(const char *clientip, const char* cpr, file = new File(fname, "mpg", info); - // Get multicast configuration filename - mcconfig_file = config->readString("multicast_configurationfile"); - - MulticastConfiguration mcconfig(info, (char*)mcconfig_file->c_str()); + MulticastConfiguration mcconfig(info, ETC"/multicast.conf"); mcastconf_t mcclientconf = mcconfig.getConf((char*)clientip); @@ -116,7 +112,6 @@ MovEncoderWriter::~MovEncoderWriter() if(multicast) delete multicast; } - void MovEncoderWriter::thread_main() { info->info("MovEncoderWriter::run"); @@ -130,3 +125,7 @@ void MovEncoderWriter::thread_main() info->info("MovEncoderWriter::stop"); } +void MovEncoderWriter::setSaveState(n_savestate savestate) +{ + file->setSaveState(savestate); +} |