summaryrefslogtreecommitdiff
path: root/libs/ardour/buffer_set.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-01 00:08:32 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-01 00:08:32 +0000
commit89c8f18f5e8ae5d6857e0da456cebcb243fe643d (patch)
tree6a35e1b52d13cfe03f5516f49ff785fc59f67323 /libs/ardour/buffer_set.cc
parent4f445eab1105b15b6641b217d5c74113a8cec5fa (diff)
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
Diffstat (limited to 'libs/ardour/buffer_set.cc')
-rw-r--r--libs/ardour/buffer_set.cc2
1 files changed, 1 insertions, 1 deletions
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.