summaryrefslogtreecommitdiffstats
path: root/src/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ConnectWindow.cpp')
-rw-r--r--src/gui/ConnectWindow.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index f0e5c7b1..e5ade51c 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -192,11 +192,16 @@ ConnectWindow::connect(bool existing)
if (!existing) {
#ifdef HAVE_LIBLO
if (scheme == "osc.udp" || scheme == "osc.tcp")
- world->set_engine(SharedPtr<EngineInterface>(new OSCEngineSender(uri)));
+ world->set_engine(
+ SharedPtr<EngineInterface>(
+ new OSCEngineSender(
+ uri,
+ world->conf()->option("packet-size").get_int32())));
#endif
#ifdef HAVE_SOUP
if (scheme == "http")
- world->set_engine(SharedPtr<EngineInterface>(new HTTPEngineSender(world, uri)));
+ world->set_engine(SharedPtr<EngineInterface>(
+ new HTTPEngineSender(world, uri)));
#endif
} else {
uri = world->engine()->uri().str();
@@ -218,7 +223,9 @@ ConnectWindow::connect(bool existing)
if (Raul::Process::launch(cmd)) {
world->set_engine(SharedPtr<EngineInterface>(
- new OSCEngineSender(string("osc.udp://localhost:").append(port_str))));
+ new OSCEngineSender(
+ string("osc.udp://localhost:").append(port_str),
+ world->conf()->option("packet-size").get_int32())));
// FIXME: static args
SharedPtr<ThreadedSigClientInterface> tsci(new ThreadedSigClientInterface(1024));