diff options
author | Len Ovens <len@ovenwerks.net> | 2017-03-15 09:20:42 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-03-15 09:20:42 -0700 |
commit | 175027fb6c036956a2fbd6ed4864b99fb31c6583 (patch) | |
tree | ae79e4c99dd40065e8ebb79a88d004000b3d3425 /libs/surfaces/osc | |
parent | 2623b227d53af4e66e5440b6e1c4b3b0e1ff683a (diff) |
OSC amend access_action with action in line to ignore if param is 0
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 20bf44997f..3f5721b0d3 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -868,10 +868,12 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_ ret = 0; } else if (!strncmp (path, "/access_action/", 15)) { - std::string action_path = path; + if (!(argc && !argv[0]->i)) { + std::string action_path = path; - access_action (action_path.substr(15)); - std::cout << "access_action path = " << action_path.substr(15) << "\n"; + access_action (action_path.substr(15)); + std::cout << "access_action path = " << action_path.substr(15) << "\n"; + } ret = 0; } else |