diff options
author | David Robillard <d@drobilla.net> | 2009-02-20 23:45:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-20 23:45:57 +0000 |
commit | ccc455f6fccc4a15bfe127388b7f548f82d84f55 (patch) | |
tree | 3028bf44b6b1b968e9f317710c85877b45adca09 /src/engine/ConnectionImpl.hpp | |
parent | 12e74d4a26eede059f016cc8a7806a57d5c9338e (diff) | |
download | ingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.tar.gz ingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.tar.bz2 ingen-ccc455f6fccc4a15bfe127388b7f548f82d84f55.zip |
Fix crash when connecting ports with mismatched poly where the destination port has fixed buffers (fix ticket #333).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1936 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ConnectionImpl.hpp')
-rw-r--r-- | src/engine/ConnectionImpl.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/ConnectionImpl.hpp b/src/engine/ConnectionImpl.hpp index e3bad1e1..3b357906 100644 --- a/src/engine/ConnectionImpl.hpp +++ b/src/engine/ConnectionImpl.hpp @@ -72,10 +72,6 @@ public: void prepare_poly(uint32_t poly); void apply_poly(Raul::Maid& maid, uint32_t poly); - bool must_copy() const; - bool must_mix() const; - bool must_extend() const; - inline bool need_buffer() const { return must_mix(); } inline bool can_direct() const { return _mode == DIRECT; } @@ -84,6 +80,10 @@ public: protected: enum { DIRECT, MIX, COPY, EXTEND } _mode; void set_mode(); + + bool must_copy() const; + bool must_mix() const; + bool must_extend() const; PortImpl* const _src_port; PortImpl* const _dst_port; |