summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-08-25 10:22:42 -0700
committerLen Ovens <len@ovenwerks.net>2017-08-25 10:22:42 -0700
commitdbab25f537c9b53fb52677aca547340bf3f8989c (patch)
tree374ccebfc5564eabdfbc2d76b08b224cde2cec84 /libs
parentd7fcdbfe1d48bd74acbd8f3eb05563fb8a96da57 (diff)
OSC: same fix for /select/*
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index eb009c59a7..9eee330949 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -1041,6 +1041,10 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
else if (!strncmp (path, "/strip/select/", 14) && strlen (path) > 14) {
int ssid = atoi (&path[14]);
ret = strip_gui_select (ssid, argv[0]->i, msg);
+ } else
+ if (strstr (path, "/select") && (argc != 1)) {
+ // All of the select commands below require 1 parameter
+ PBD::warning << "OSC: Wrong number of parameters." << endmsg;
}
else if (!strncmp (path, "/select/send_gain/", 18) && strlen (path) > 18) {
int ssid = atoi (&path[18]);