From 89c8f18f5e8ae5d6857e0da456cebcb243fe643d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Dec 2009 00:08:32 +0000 Subject: Modify assertion; as far as I can see, ensure_buffers makes no attempt to reduce the number of available buffers, even if it is requested. So in that case the old assertion will fire erroneously. git-svn-id: svn://localhost/ardour2/branches/3.0@6229 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/buffer_set.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/buffer_set.cc') diff --git a/libs/ardour/buffer_set.cc b/libs/ardour/buffer_set.cc index 2a1e7f2498..c97a47e42b 100644 --- a/libs/ardour/buffer_set.cc +++ b/libs/ardour/buffer_set.cc @@ -221,7 +221,7 @@ BufferSet::ensure_buffers(const ChanCount& chns, size_t buffer_capacity) assert(bufs[0]->capacity() >= buffer_capacity); } - assert (available() == chns); + assert (available() >= chns); } /** Get the capacity (size) of the available buffers of the given type. -- cgit v1.2.3