--- a/QTfrontend/hwform.cpp Fri Jul 13 16:35:42 2012 +0400
+++ b/QTfrontend/hwform.cpp Fri Jul 13 16:39:20 2012 +0400
@@ -142,7 +142,7 @@
config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini");
- ui.pageVideos->config = config;
+ ui.pageVideos->init(config);
#ifdef __APPLE__
panel = new M3Panel;
@@ -1428,18 +1428,7 @@
}
}
- // encode videos
- QDir videosDir(cfgdir->absolutePath() + "/VideoTemp/");
- QStringList files = videosDir.entryList(QStringList("*.txtout"), QDir::Files);
- foreach (const QString & str, files)
- {
- QString prefix = str;
- prefix.chop(7); // remove ".txtout"
- videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice
- HWRecorder* pRecorder = new HWRecorder(config, prefix);
- ui.pageVideos->addRecorder(pRecorder);
- pRecorder->EncodeVideo(record);
- }
+ ui.pageVideos->startEncoding(record);
}
void HWForm::startTraining(const QString & scriptName)