diff options
author | Len Ovens <len@ovenwerks.net> | 2017-05-05 08:58:49 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-05-05 15:02:22 -0700 |
commit | 1eb18f8e27cd8712c1259ed919af3f14b8a5fa47 (patch) | |
tree | 0e6237114897bd7e1c37e03f2db4b59526f98e6b /libs | |
parent | 379ad3357df6cba267b7005aac572d6821487269 (diff) |
OSC: make some more paths work with or without a parameter.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index a0985f7850..c3d2babcff 100644 --- 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 - 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 - 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 - if (argv[0]->i) { + if ((!argc) || argv[0]->i) { cue_previous (msg); } ret = 0; |