summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/ConnectionEvent.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/engine/events/ConnectionEvent.cpp b/src/libs/engine/events/ConnectionEvent.cpp
index ee2c1694..fa8b0f17 100644
--- a/src/libs/engine/events/ConnectionEvent.cpp
+++ b/src/libs/engine/events/ConnectionEvent.cpp
@@ -69,7 +69,9 @@ ConnectionEvent::pre_process()
return;
}
- if (_src_port->type() != _dst_port->type()) {
+ if (_src_port->type() != _dst_port->type()
+ && !( (_src_port->type() != DataType::AUDIO || _src_port->type() != DataType::CONTROL)
+ && (_dst_port->type() != DataType::AUDIO || _dst_port->type() != DataType::CONTROL) )) {
_error = TYPE_MISMATCH;
QueuedEvent::pre_process();
return;