mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
OSC: fix check for a valid OSC server
This commit is contained in:
@@ -218,6 +218,11 @@ void OscInterface::applyOscCommand(MainWindow &main_window, QVariantList & comma
|
||||
//std::cout << "load /mapmap/paint/media/load " << paint_id << " " << image_uri << std::endl;
|
||||
main_window.setTextureUri(paint_id, image_uri);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Unhandled OSC message: ";
|
||||
printCommand(command);
|
||||
}
|
||||
|
||||
//else if (path == "/add/quad")
|
||||
// addQuad();
|
||||
|
||||
+1
-1
@@ -9,8 +9,8 @@ OscReceiver::OscReceiver(const std::string &port) :
|
||||
port_(port),
|
||||
server_(0)
|
||||
{
|
||||
server_is_ok_ = (server_ != NULL);
|
||||
server_ = lo_server_thread_new(port_.c_str(), error);
|
||||
server_is_ok_ = (server_ != NULL);
|
||||
// #ifdef CONFIG_DEBUG
|
||||
// /* add method that will match any path and args */
|
||||
// lo_server_thread_add_method(server_, NULL, NULL, genericHandler, this);
|
||||
|
||||
Reference in New Issue
Block a user