From 5f3626d46fe3dcfddaba834a22dfaf99ed9f81bb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Jul 2020 22:53:41 +0200 Subject: [PATCH] Increase timeout for export-preparation In some rare cases the butler may be busy for a long time (e.g. seek in a large session may still be active when export is started). 8 second timeout seems reasonable to prevent the app from hanging without desktops showing a "unresponsive" popup in case the timeout is reached for some reason (e.g the engine dies, and no TFSM transition can happen). --- libs/ardour/session_export.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc index f7578a3508..78aec6c759 100644 --- a/libs/ardour/session_export.cc +++ b/libs/ardour/session_export.cc @@ -140,7 +140,7 @@ Session::start_audio_export (samplepos_t position, bool realtime, bool region_ex * to wait for it to wake up and call * non_realtime_stop (). */ - int timeout = std::max (10, (int)(nominal_sample_rate () / get_block_size ())); + int timeout = std::max (10, (int)(8 * nominal_sample_rate () / get_block_size ())); do { Glib::usleep (engine().usecs_per_cycle ()); } while (_transport_fsm->waiting_for_butler() && --timeout > 0);