summaryrefslogtreecommitdiff
path: root/NT/src/rendercontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NT/src/rendercontext.cpp')
-rw-r--r--NT/src/rendercontext.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/NT/src/rendercontext.cpp b/NT/src/rendercontext.cpp
index a03723f..631f4b8 100644
--- a/NT/src/rendercontext.cpp
+++ b/NT/src/rendercontext.cpp
@@ -17,15 +17,15 @@ void Render_context::runTask() {
mutex.unlock();
if(cmd.task==ANALYSE_AUDIO) {
state=ANALYSING_AUDIO;
- graph.load_audio(cmd.body);
+ graph.load_audio(cmd.message);
state=IDLE;
}
if(cmd.task==RENDER) {
state=RENDERING;
renders[cmd.uid]=Render_status(RENDERING);
- if(graph.video_render(output_filename,output_framerate,start,stop)){
+ if(video_render(cmd.message)){
state=IDLE;
- if (graph.cancelled) renders[cmd.uid].status=CANCELLED;
+ if (cancelled) renders[cmd.uid].status=CANCELLED;
else renders[cmd.uid].status=RENDER_READY;
}
else {
@@ -38,7 +38,7 @@ void Render_context::runTask() {
if(cmd.task==LOAD_GRAPH) {
state=LOADING_GRAPH;
if (graph_filename!="") {
- if (!graph.loadFile(graph_filename,media_dir)){
+ if (!graph.loadFile(cmd.message,media_path)){
cerr<<"Rotor: failed to load graph from "<<graph_filename<<endl;
}
}
@@ -499,4 +499,4 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
XML.addValue("error","Bad request");
}
}
-} \ No newline at end of file
+}