Explorar o código

Start Sophiar in another thread to reduce blocking.

jcsyshc hai 1 ano
pai
achega
b660f65e11

+ 1 - 0
src/core/small_obj.hpp

@@ -33,6 +33,7 @@ namespace sophiar {
         using difference_type = ptrdiff_t;
 
         static char *malloc(size_type n) {
+            if (auto r = n % Align; r != 0) { n += Align - r; }
             return (char *) aligned_alloc(Align, n);
         }
 

+ 1 - 0
src/sensor/ndi/ndi_interface.cpp

@@ -961,6 +961,7 @@ namespace sophiar {
 
         awaitable<bool> on_start_impl() {
             CO_ENSURE(start_ndi_tracking())
+            // TODO: stream tracking does not work properly
             if (prefer_stream_tracking && ndi_api_major_version >= 3) { // use streaming
                 using_stream_tracking = true;
                 auto stream_cmd = get_suitable_bx();

+ 1 - 1
tests/data/ndi_interface_config.json

@@ -19,7 +19,7 @@
       "type": "ndi_interface",
       "name": "ndi",
       "init_config": {
-        "address_type": "serial",
+        "address_type": "ethernet",
         "ip": "10.0.0.5",
         "tcp_port": 8765,
         "com_port": "/dev/ttyUSB0",