From: Len Ovens Date: Wed, 10 May 2017 21:13:47 +0000 (-0700) Subject: OSC: fix manual port setting to take effect on first incoming message X-Git-Tag: 5.9~38 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0124c2e99d83cf44eedb1b737a37b44bf5d820b8;p=ardour.git OSC: fix manual port setting to take effect on first incoming message --- diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index f6c89005b7..d93e696a2a 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1401,6 +1401,12 @@ OSC::get_surface (lo_address addr) { string r_url; char * rurl; + if (address_only) { + string host = lo_address_get_hostname (addr); + int protocol = lo_address_get_protocol (addr); + addr = lo_address_new_with_proto (protocol, host.c_str(), remote_port.c_str()); + } + rurl = lo_address_get_url (addr); r_url = rurl; free (rurl);