From 59af545447973115339dfc05f010c6b8bd70b2f9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 23 Dec 2010 22:34:00 +0000 Subject: Fix crash when client attempts to set event port value to non-blob (fix ticket #623). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2781 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/SetPortValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/events') diff --git a/src/engine/events/SetPortValue.cpp b/src/engine/events/SetPortValue.cpp index a4b1554b..86623888 100644 --- a/src/engine/events/SetPortValue.cpp +++ b/src/engine/events/SetPortValue.cpp @@ -154,7 +154,7 @@ SetPortValue::apply(Context& context) LV2URIMap& uris = *_engine.world()->uris().get(); EventBuffer* const ebuf = dynamic_cast(buf); - if (ebuf) { + if (ebuf && _value.type() == Atom::BLOB) { const uint32_t frames = std::max(uint32_t(_time - start), ebuf->latest_frames()); // Size 0 event, pass it along to the plugin as a typed but empty event -- cgit v1.2.1