diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-08-02 11:18:38 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-08-02 11:18:38 +0100 |
| commit | 8022d45fedd72f69a0c96ea4b651817321baddf8 (patch) | |
| tree | fccb8d51b0da290cd1a3939c2adf3eebbae180a6 /rotord/src/rendercontext.cpp | |
| parent | 9c40fdc08e64fde94b4f041565be916ac479e483 (diff) | |
load video media from graph
Diffstat (limited to 'rotord/src/rendercontext.cpp')
| -rw-r--r-- | rotord/src/rendercontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp index 7362d64..62343ac 100644 --- a/rotord/src/rendercontext.cpp +++ b/rotord/src/rendercontext.cpp @@ -155,7 +155,7 @@ void Render_context::session_command(const std::vector<std::string>& command,xml //should interrupt whatever is happening? //before begining to load from xml if (state==IDLE) { //eventually not like this - if (graph.load(command[3])) { + if (graph.load(command[3],media_dir)) { status=HTTPResponse::HTTP_OK; logger.information("Loaded graph from http PUT body"); XML.addValue("status","Loaded graph from PUT body"); @@ -170,7 +170,7 @@ void Render_context::session_command(const std::vector<std::string>& command,xml string graph_filename=graph_dir+command[3]; Poco::File f=Poco::File(graph_filename); if (f.exists()) { - if (graph.loadFile(graph_filename)) { + if (graph.loadFile(graph_filename,media_dir)) { status=HTTPResponse::HTTP_OK; //XML.addValue("patchbay",graph.toString()); //XML.loadFromBuffer(graph.toString()); |
