summaryrefslogtreecommitdiff
path: root/rotord/src/rendercontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rendercontext.cpp')
-rw-r--r--rotord/src/rendercontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp
index 1beb6cc..2a9dd62 100644
--- a/rotord/src/rendercontext.cpp
+++ b/rotord/src/rendercontext.cpp
@@ -490,9 +490,11 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
if (command.commands[1]=="render") {
if (command.method=="GET") {
if(state==RENDERING){
+ graph.mutex.lock();
status=HTTPResponse::HTTP_OK;
XML.addValue("status","Rendering video");
XML.addValue("progress",toString(graph.progress));
+ graph.mutex.unlock();
}
else {
logger.error("ERROR: Render progress requested but not rendering");