From b721171f6912dcaca5c9f326617789938f89b787 Mon Sep 17 00:00:00 2001 From: Comment Date: Wed, 5 Feb 2014 13:05:39 +0000 Subject: NT streamlining thread command process --- NT/src/rendercontext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'NT/src/rendercontext.cpp') 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 "<