It would probably make sense to use NDIlib_find_wait_for_sources() in a loop with a very small timeout, and also check some flag every iteration if the element is being shut down again.
Unclear if there's better API for doing the same in an interruptable fashion.
It would probably make sense to use
NDIlib_find_wait_for_sources()
in a loop with a very small timeout, and also check some flag every iteration if the element is being shut down again.Unclear if there's better API for doing the same in an interruptable fashion.