From 1eb18f8e27cd8712c1259ed919af3f14b8a5fa47 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Fri, 5 May 2017 08:58:49 -0700 Subject: [PATCH] OSC: make some more paths work with or without a parameter. --- libs/surfaces/osc/osc.cc | 6 +++--- 1 file 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; -- 2.30.2