From eabc487e597dd326c2cb67f33cfef073aafeaf59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Mon, 6 Mar 2023 10:03:14 +0100 Subject: [PATCH] output/PipeWire: lock thread loop in SendTag --- src/output/plugins/PipeWireOutputPlugin.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 03ec88972..ca827a7af 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -962,6 +962,8 @@ PipeWireOutput::SendTag(const Tag &tag) struct spa_dict dict = SPA_DICT_INIT(items, n_items); + const PipeWire::ThreadLoopLock lock(thread_loop); + auto rc = pw_stream_update_properties(stream, &dict); if (rc < 0) LogWarning(pipewire_output_domain, "Error updating properties");