aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-10 22:35:59 +0100
committercbdev <cb@cbcdn.com>2019-12-10 22:35:59 +0100
commit31cc72f660513b033cc0621782586562bafab08e (patch)
treef9f66472db8e84bbf4e076b2f19950543ce1b46c /backends
parent4ca0acff460c1c02a11cb9f246fb755cd4f4f792 (diff)
downloadmidimonster-31cc72f660513b033cc0621782586562bafab08e.tar.gz
midimonster-31cc72f660513b033cc0621782586562bafab08e.tar.bz2
midimonster-31cc72f660513b033cc0621782586562bafab08e.zip
Fix bug in sACN config parsing
Diffstat (limited to 'backends')
-rw-r--r--backends/osc.c1
-rw-r--r--backends/sacn.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/backends/osc.c b/backends/osc.c
index 757ad89..b12ae40 100644
--- a/backends/osc.c
+++ b/backends/osc.c
@@ -522,6 +522,7 @@ static int osc_configure_instance(instance* inst, char* option, char* value){
return 1;
}
+ //this requests a socket with SO_BROADCAST set, whether this is useful functionality for OSC is up for debate
data->fd = mmbackend_socket(host, port, SOCK_DGRAM, 1, 1);
if(data->fd < 0){
fprintf(stderr, "Failed to bind for instance %s\n", inst->name);
diff --git a/backends/sacn.c b/backends/sacn.c
index edb648d..75c327e 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -171,6 +171,7 @@ static int sacn_configure_instance(instance* inst, char* option, char* value){
}
else if(!strcmp(option, "unicast")){
data->unicast_input = strtoul(value, NULL, 10);
+ return 0;
}
fprintf(stderr, "Unknown configuration option %s for sACN backend\n", option);