diff options
| author | Comment <tim@gray.(none)> | 2013-09-30 11:51:58 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-09-30 11:51:58 +0100 |
| commit | 38edd2e78c326059209c1fd15bf1b543f5fd7a46 (patch) | |
| tree | dd31a0687e5f7f4ab32b3b7548412e3fd64eac0e /rotord/src/rendercontext.cpp | |
| parent | 873f295e28a20e2e774852d8d7010ff5629549b4 (diff) | |
mutex locking progress bar
Diffstat (limited to 'rotord/src/rendercontext.cpp')
| -rw-r--r-- | rotord/src/rendercontext.cpp | 2 |
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"); |
