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/graph.cpp | |
| parent | 873f295e28a20e2e774852d8d7010ff5629549b4 (diff) | |
mutex locking progress bar
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index f904a9d..b70684f 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -211,7 +211,9 @@ bool Graph::video_render(const string &output_filename,const float framerate,int exporter.encodeFrame(i->RGBdata); } vf+=vstep; + mutex.lock(); progress=vf/duration; + mutex.unlock(); if (usingaudio) {delete a;}; } |
