diff options
Diffstat (limited to 'libs/ardour/session_export.cc')
-rw-r--r-- | libs/ardour/session_export.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc index d66be3ada3..79e0b5a51b 100644 --- a/libs/ardour/session_export.cc +++ b/libs/ardour/session_export.cc @@ -239,7 +239,10 @@ Session::process_export (pframes_t nframes) try { /* handle export - XXX what about error handling? */ - ProcessExport (nframes); + if (ProcessExport (nframes).value_or (0) > 0) { + /* last cycle completed */ + flush_all_inserts (); + } } catch (std::exception & e) { error << string_compose (_("Export ended unexpectedly: %1"), e.what()) << endmsg; |