summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-24 01:46:15 +0000
committerDavid Robillard <d@drobilla.net>2013-02-24 01:46:15 +0000
commit4ff4c69ff0d22e88b8799f36f277de263232de4f (patch)
tree1fa73050181683a01799a1afea246b3d463f9699 /src/server/PortImpl.cpp
parentc09203d0caa4695bec58a8bf84e31ff69de5eb61 (diff)
downloadingen-4ff4c69ff0d22e88b8799f36f277de263232de4f.tar.gz
ingen-4ff4c69ff0d22e88b8799f36f277de263232de4f.tar.bz2
ingen-4ff4c69ff0d22e88b8799f36f277de263232de4f.zip
Don't send port values to UI for audio ports (fix Calf crash).
Don't set ingen:value property for non-control ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5081 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index b3590d1f..29b6e044 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -86,7 +86,7 @@ PortImpl::PortImpl(BufferFactory& bufs,
add_property(uris.rdf_type, bufs.forge().alloc_uri(type.uri()));
set_property(uris.lv2_index, bufs.forge().make((int32_t)index));
- if (value.is_valid()) {
+ if ((type == PortType::CONTROL || type == PortType::CV) && value.is_valid()) {
set_property(uris.ingen_value, value);
}
if (type == PortType::ATOM) {