summaryrefslogtreecommitdiff
path: root/libs/ardour/session_export.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-05-02 13:14:06 +0000
committerCarl Hetherington <carl@carlh.net>2010-05-02 13:14:06 +0000
commitb30fa60ad91a1e9a7cb9dc5fc8d77294f17834ef (patch)
treeffd080be6d20bba720993c4abe18177c87b09575 /libs/ardour/session_export.cc
parent0d0e32d8b33e48951feab16d2ef202c14eb9f1f9 (diff)
Fix crash on export.
git-svn-id: svn://localhost/ardour2/branches/3.0@7038 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_export.cc')
-rw-r--r--libs/ardour/session_export.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc
index 17387ebd5e..f696c6b293 100644
--- a/libs/ardour/session_export.cc
+++ b/libs/ardour/session_export.cc
@@ -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;
}