output/PipeWire: lock thread loop in SendTag

This commit is contained in:
Naïm Favier 2023-03-06 10:03:14 +01:00
parent 20a5276560
commit eabc487e59
No known key found for this signature in database
GPG Key ID: 95AFCE8211908325

View File

@ -962,6 +962,8 @@ PipeWireOutput::SendTag(const Tag &tag)
struct spa_dict dict = SPA_DICT_INIT(items, n_items); struct spa_dict dict = SPA_DICT_INIT(items, n_items);
const PipeWire::ThreadLoopLock lock(thread_loop);
auto rc = pw_stream_update_properties(stream, &dict); auto rc = pw_stream_update_properties(stream, &dict);
if (rc < 0) if (rc < 0)
LogWarning(pipewire_output_domain, "Error updating properties"); LogWarning(pipewire_output_domain, "Error updating properties");