diff options
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 2e89a4c..5487717 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -279,6 +279,7 @@ bool Graph::parseJson(string &data,string &media_path){ } //we know the json validates so clear the existing graph clear(); + Node_factory factory; check_audio(root["audio"].asString(),media_path); init(root["ID"].asString(),root["description"].asString()); Json::Value jnodes = root["nodeDefinitions"]; @@ -394,6 +395,7 @@ bool Graph::parseJson(string &data,string &media_path){ } bool Graph::parseXml(string media_path){ clear(); + Node_factory factory; check_audio(xml.getAttribute("patchbay","audio","",0),media_path); init(xml.getAttribute("patchbay","ID","",0),xml.getValue("patchbay","",0)); if(xml.pushTag("patchbay")) { |
