udpsink, multiudpsink: keep GCancellable fd around instead of re-creating it constantly
authorTim-Philipp Müller <tim@centricular.com>
Wed, 27 May 2015 14:55:56 +0000 (15:55 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 27 May 2015 16:08:47 +0000 (17:08 +0100)
commitb33d30621c5730af771b31509f5492beda1b49b0
treef0e7a143f62107580f253b4009cd37e0c1cef564
parent11bb21f3c2f9347b3eeac1f8d6814ebbcdc49f36
udpsink, multiudpsink: keep GCancellable fd around instead of re-creating it constantly

Otherwise we constantly create/close event file descriptors,
every time we call g_socket_condition_timed_wait() or
g_socket_send_message(s)(), i.e. a lot. Which is not
particularly good for performance.

Can't create GCancellable in ::start() here because it's used
in client_new() which may be called via the add-client action
signal which may be called before the element is up and running.
gst/udp/gstmultiudpsink.c
gst/udp/gstmultiudpsink.h