projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
379ad33
)
OSC: make some more paths work with or without a parameter.
author
Len Ovens
<len@ovenwerks.net>
Fri, 5 May 2017 15:58:49 +0000
(08:58 -0700)
committer
Len Ovens
<len@ovenwerks.net>
Fri, 5 May 2017 22:02:22 +0000
(15:02 -0700)
libs/surfaces/osc/osc.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/osc/osc.cc
b/libs/surfaces/osc/osc.cc
index a0985f7850bd8a49b78860346cd0fee8a3833c94..c3d2babcff966b74312ab4ffbaf574bf35419281 100644
(file)
--- a/
libs/surfaces/osc/osc.cc
+++ b/
libs/surfaces/osc/osc.cc
@@
-4031,21
+4031,21
@@
OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
}
else if (!strncmp (path, "/cue/connect", 12)) {
// Connect to default Aux bus
}
else if (!strncmp (path, "/cue/connect", 12)) {
// Connect to default Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_set (1, msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/next_aux", 13)) {
// switch to next Aux bus
cue_set (1, msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/next_aux", 13)) {
// switch to next Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_next (msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/previous_aux", 17)) {
// switch to previous Aux bus
cue_next (msg);
}
ret = 0;
}
else if (!strncmp (path, "/cue/previous_aux", 17)) {
// switch to previous Aux bus
- if (argv[0]->i) {
+ if (
(!argc) ||
argv[0]->i) {
cue_previous (msg);
}
ret = 0;
cue_previous (msg);
}
ret = 0;