summaryrefslogtreecommitdiffstats
path: root/src/engine/events/SetPortValue.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-23 22:34:00 +0000
committerDavid Robillard <d@drobilla.net>2010-12-23 22:34:00 +0000
commit59af545447973115339dfc05f010c6b8bd70b2f9 (patch)
tree90ab426eff2c723d74d6f88f8ce27d511a966285 /src/engine/events/SetPortValue.cpp
parent48787337e744df41e12a81e75d39a58851d1ba0a (diff)
downloadingen-59af545447973115339dfc05f010c6b8bd70b2f9.tar.gz
ingen-59af545447973115339dfc05f010c6b8bd70b2f9.tar.bz2
ingen-59af545447973115339dfc05f010c6b8bd70b2f9.zip
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
Diffstat (limited to 'src/engine/events/SetPortValue.cpp')
-rw-r--r--src/engine/events/SetPortValue.cpp2
1 files changed, 1 insertions, 1 deletions
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<EventBuffer*>(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