Skip to content
  • Tim-Philipp Müller's avatar
    udpsink, multiudpsink: keep GCancellable fd around instead of re-creating it constantly · b33d3062
    Tim-Philipp Müller authored
    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.
    b33d3062