diff options
Diffstat (limited to 'src/server/ingen_jack.cpp')
-rw-r--r-- | src/server/ingen_jack.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/ingen_jack.cpp b/src/server/ingen_jack.cpp index 267b13aa..fd80d804 100644 --- a/src/server/ingen_jack.cpp +++ b/src/server/ingen_jack.cpp @@ -34,8 +34,11 @@ struct IngenJackModule : public Ingen::Shared::Module { Server::JackDriver* driver = new Server::JackDriver( *(Server::Engine*)world->local_engine().get()); - driver->attach(world->conf()->option("jack-server").get_string(), - world->conf()->option("jack-client").get_string(), NULL); + const Raul::Configuration::Value& s = world->conf()->option("jack-server"); + const std::string server_name = s.is_valid() ? s.get_string() : ""; + driver->attach(server_name, + world->conf()->option("jack-client").get_string(), + NULL); ((Server::Engine*)world->local_engine().get())->set_driver( SharedPtr<Server::Driver>(driver)); } |