Added option Recorder file naming style

VideoRecorder and PNGRecorder now have setting to decide how to name the files, with date prefix or sequentially numbered.  A base name is given with session filename.
This commit is contained in:
Bruno Herbelin
2022-07-20 23:47:22 +02:00
parent 1613e9ce46
commit d8d4322b2e
7 changed files with 178 additions and 62 deletions

View File

@@ -156,6 +156,7 @@ void Settings::Save(uint64_t runtime)
RecordNode->SetAttribute("framerate_mode", application.record.framerate_mode);
RecordNode->SetAttribute("buffering_mode", application.record.buffering_mode);
RecordNode->SetAttribute("priority_mode", application.record.priority_mode);
RecordNode->SetAttribute("naming_mode", application.record.naming_mode);
pRoot->InsertEndChild(RecordNode);
// Transition
@@ -399,6 +400,7 @@ void Settings::Load()
recordnode->QueryIntAttribute("framerate_mode", &application.record.framerate_mode);
recordnode->QueryIntAttribute("buffering_mode", &application.record.buffering_mode);
recordnode->QueryIntAttribute("priority_mode", &application.record.priority_mode);
recordnode->QueryIntAttribute("naming_mode", &application.record.naming_mode);
const char *path_ = recordnode->Attribute("path");
if (path_)