summaryrefslogtreecommitdiff
path: root/libs/ardour/export_graph_builder.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 16:27:02 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 16:27:02 +0000
commita41525c3f778f89d4563bbd50b8e7dbc1b10558b (patch)
treecf156f905096d713ebdffed2daf033d6136a56e7 /libs/ardour/export_graph_builder.cc
parentefff8551cdba997635d1278d65270c52a804c327 (diff)
Fix invalid assertion from previous commit, and possibly fix having random garbage at end of export.
git-svn-id: svn://localhost/ardour2/branches/3.0@7950 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_graph_builder.cc')
-rw-r--r--libs/ardour/export_graph_builder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index 6d7a36f5cc..1cd3118eae 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -40,11 +40,11 @@ ExportGraphBuilder::~ExportGraphBuilder ()
int
ExportGraphBuilder::process (nframes_t frames, bool last_cycle)
{
- assert(frames == process_buffer_frames);
+ assert(frames <= process_buffer_frames);
for (ChannelMap::iterator it = channels.begin(); it != channels.end(); ++it) {
- it->first->read (process_buffer, process_buffer_frames);
- ProcessContext<Sample> context(process_buffer, process_buffer_frames, 1);
+ it->first->read (process_buffer, frames);
+ ProcessContext<Sample> context(process_buffer, frames, 1);
if (last_cycle) { context.set_flag (ProcessContext<Sample>::EndOfInput); }
it->second->process (context);
}