Tweak transmission of MMC on locate. Should fix #3121.
[ardour.git] / libs / ardour / session_export.cc
index 17387ebd5e682e086c1d6bd8eef68f158aad7a5d..75c8fd0dd75404d53d3beaa37bd405122334210a 100644 (file)
@@ -28,6 +28,7 @@
 #include "ardour/export_status.h"
 #include "ardour/session.h"
 #include "ardour/track.h"
+#include "ardour/process_thread.h"
 
 #include "i18n.h"
 
@@ -179,7 +180,9 @@ Session::process_export (nframes_t nframes)
 int
 Session::process_export_fw (nframes_t nframes)
 {
+        _engine.main_thread()->get_buffers ();
        process_export (nframes);
+        _engine.main_thread()->drop_buffers ();
        return 0;
 }
 
@@ -221,6 +224,6 @@ Session::finalize_audio_export ()
        if (post_export_sync) {
                config.set_external_sync (true);
        } else {
-               locate (post_export_position, false, false, false);
+               locate (post_export_position, false, false, false, false, false);
        }
 }