Merged with trunk R1304
[ardour.git] / libs / ardour / osc.cc
index c43f254f6f1d81ca1ec109c22b27341b60a1f573..933fba8740065ff9fe69bc2570ccc570dcf02205 100644 (file)
@@ -199,10 +199,15 @@ OSC::init_osc_thread ()
                return false;
        }
        
-       pthread_create (&_osc_thread, NULL, &OSC::_osc_receiver, this);
+       pthread_attr_t attr;
+       pthread_attr_init(&attr);
+       pthread_attr_setstacksize(&attr, 500000);
+
+       pthread_create (&_osc_thread, &attr, &OSC::_osc_receiver, this);
        if (!_osc_thread) {
                return false;
        }
+       pthread_attr_destroy(&attr);
 
        //pthread_detach (_osc_thread);
        return true;