summaryrefslogtreecommitdiff
path: root/rotord/src/graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.cpp')
-rw-r--r--rotord/src/graph.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp
index 96c313f..521a18e 100644
--- a/rotord/src/graph.cpp
+++ b/rotord/src/graph.cpp
@@ -139,7 +139,7 @@ bool Graph::video_render(const string &output_filename,const double framerate,in
bool usingaudio=audioloader.open(audio_filename);
- Logger& logger = Logger::get("Rotor");
+ Logger& logger = Logger::get(Log_name);
logger.information("Video_output rendering "+output_filename+": "+toString(duration)+" seconds at "+toString(framerate)+" fps, audio frame size: "+toString(exporter.get_audio_framesize()));
//25fps video and 43.06640625fps audio? hmm
//how to get the timecodes correct for the interleaved files
@@ -333,6 +333,7 @@ bool Graph::parseJson(string &data,string &media_path){
map<string,string> settings;
vector<string> attrs;
settings["type"]=jnodes[i]["type"].asString();
+ settings["Log_name"]=Log_name;
//attributes
settings["media_path"]=media_path;
for (uint32_t m=0;m<jnodes[i]["attributes"].size();m++) {
@@ -497,6 +498,7 @@ bool Graph::parseXml(string media_path){
//cerr << "Got attribute: " << attr << ":" << xml.getAttribute("node",attr,"",i1) << endl;
}
settings["media_path"]=media_path;
+ settings["Log_name"]=Log_name;
Node* node=factory.create(settings);
if (node) {
string nodeID=xml.getAttribute("node","ID","",i1);
@@ -630,7 +632,7 @@ bool Graph::parseXml(string media_path){
}
bool Graph::load_audio(const string &filename,vector<Audio_processor*> processors){
if (filename.size()==0) return false;
- Logger& logger = Logger::get("Rotor");
+ Logger& logger = Logger::get(Log_name);
logger.information("Analysing "+filename+" seed:"+toString(analysis_seed));