threadshare/udpsink: Don't hold settings lock while getting clients property

Otherwise we can deadlock between this and render().
This commit is contained in:
Sebastian Dröge 2020-08-11 12:20:56 +03:00
parent e1784ea01b
commit b8f9e0efc8

View file

@ -1380,6 +1380,8 @@ impl ObjectImpl for UdpSink {
subclass::Property("ttl-mc", ..) => Ok(settings.ttl_mc.to_value()),
subclass::Property("qos-dscp", ..) => Ok(settings.qos_dscp.to_value()),
subclass::Property("clients", ..) => {
drop(settings);
let clients: Vec<String> = self
.sink_pad_handler
.get_clients()