Fix final export-timespan count

ExportHandler::start_timespan() is also used to stop export
when there are no more timespans to be processed.

This is done because freewheeling has to be stopped from
outside the process cycle.
This commit is contained in:
Robin Gareus
2021-06-14 00:40:23 +02:00
parent e3569b6469
commit c8205cc6d9

View File

@@ -170,8 +170,6 @@ ExportHandler::do_export ()
int
ExportHandler::start_timespan ()
{
export_status->timespan++;
/* stop freewheeling and wait for latency callbacks */
if (AudioEngine::instance()->freewheeling ()) {
AudioEngine::instance()->freewheel (false);
@@ -186,6 +184,8 @@ ExportHandler::start_timespan ()
return -1;
}
export_status->timespan++;
/* finish_timespan pops the config_map entry that has been done, so
this is the timespan to do this time
*/