QTfrontend/hwform.cpp
changeset 7280 fd707afbc3a2
parent 7235 baa69bd025d9
child 7347 88685fbb2679
--- a/QTfrontend/hwform.cpp	Sun Jun 24 20:31:26 2012 +0400
+++ b/QTfrontend/hwform.cpp	Sun Jun 24 20:57:02 2012 +0400
@@ -1429,8 +1429,10 @@
         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);
-        pRecorder->EncodeVideo(record, prefix);
+        HWRecorder* pRecorder = new HWRecorder(config, prefix);
+        ui.pageVideos->addRecorder(pRecorder);
+        int numFrames = QFileInfo(videosDir.absoluteFilePath(prefix + ".txtin")).size()/16;
+        pRecorder->EncodeVideo(record, numFrames);
     }
 }