X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Fexport_status.cc;h=d5ccedaf3fd9f8534dcfb86744900198e23cabed;hb=fd23f89b357be720bd1cb4a2aeebb5bc017d5878;hp=dbb96432ee5fb68aac8eded0611d069d51d68c6a;hpb=1de3eac2deeb5400e349114ff59d6fa0a6d6de1e;p=ardour.git diff --git a/libs/ardour/export_status.cc b/libs/ardour/export_status.cc index dbb96432ee..d5ccedaf3f 100644 --- a/libs/ardour/export_status.cc +++ b/libs/ardour/export_status.cc @@ -18,6 +18,8 @@ */ +#include + #include "ardour/export_status.h" namespace ARDOUR @@ -31,38 +33,43 @@ ExportStatus::ExportStatus () void ExportStatus::init () { + Glib::Threads::Mutex::Lock l (_run_lock); stop = false; - running = false; + _running = false; _aborted = false; - _finished = false; _errors = false; - progress = 0.0; - normalizing = false; + active_job = Exporting; total_timespans = 0; timespan = 0; - total_frames = 0; - processed_frames = 0; + total_samples = 0; + processed_samples = 0; + + total_samples_current_timespan = 0; + processed_samples_current_timespan = 0; + + total_postprocessing_cycles = 0; + current_postprocessing_cycle = 0; + result_map.clear(); } void ExportStatus::abort (bool error_occurred) { + Glib::Threads::Mutex::Lock l (_run_lock); _aborted = true; - _finished = true; _errors = _errors || error_occurred; - running = false; - Aborting (); + _running = false; } void ExportStatus::finish () { - _finished = true; - running = false; - Finished(); + Glib::Threads::Mutex::Lock l (_run_lock); + set_running (false); + Finished(); /* EMIT SIGNAL */ } } // namespace ARDOUR