Fix assertion failure on region bounce.
authorCarl Hetherington <carl@carlh.net>
Fri, 15 Jan 2010 00:17:37 +0000 (00:17 +0000)
committerCarl Hetherington <carl@carlh.net>
Fri, 15 Jan 2010 00:17:37 +0000 (00:17 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6489 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/export_channel.cc

index 80e672038e089dfe2a325776abe699ba56b91a0a..a09e6e21b6c2a6cfd388b011bc7256d3d2deeb86 100644 (file)
@@ -110,8 +110,8 @@ RegionExportChannelFactory::RegionExportChannelFactory (Session * session, Audio
 
        session->ProcessExport.connect_same_thread (export_connection, boost::bind (&RegionExportChannelFactory::new_cycle_started, this, _1));
 
-       buffers.set_count (ChanCount (DataType::AUDIO, n_channels));
        buffers.ensure_buffers (DataType::AUDIO, n_channels, frames_per_cycle);
+       buffers.set_count (ChanCount (DataType::AUDIO, n_channels));
 }
 
 RegionExportChannelFactory::~RegionExportChannelFactory ()