From a41525c3f778f89d4563bbd50b8e7dbc1b10558b Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Tue, 2 Nov 2010 16:27:02 +0000 Subject: [PATCH] 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 --- libs/ardour/export_graph_builder.cc | 6 +++--- 1 file 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 context(process_buffer, process_buffer_frames, 1); + it->first->read (process_buffer, frames); + ProcessContext context(process_buffer, frames, 1); if (last_cycle) { context.set_flag (ProcessContext::EndOfInput); } it->second->process (context); }