threadshare: ts-udpsink creating separate threads
I have multiple sub-pipelines where each sub-pipepline has ts-udpsink. I create separate instance of this element for each sub-pipeline and use g_signal_emit_by_name(element, "add", address, 5004, NULL);
and set socket for each instance.
With this it is creating a separate thread of each of the element.
Now, https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/main/generic/threadshare/tests/udpsink.rs it creates element only once and seems to be creating socket internally for each client. and uses g_signal_emit_by_name(element, "add", address, 5004, NULL);
multiple times to add different clients.
In my usage, I create multiple instances of the element. However, for other threadshare elements, threads are shared with multiple instances of the same element.
Is ts-udpsink
an exception?