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).
This commit is contained in:
parent
1c98687bea
commit
5f3626d46f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user