teltek / gst-plugin-ndi

GStreamer NDI Plugin for Linux
GNU Lesser General Public License v2.1
158 stars 27 forks source link

Un-interruptable `thread::sleep()` in `connect_ndi()` suboptimal #28

Closed sdroege closed 5 years ago

sdroege commented 5 years ago

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.