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
1 changed files with 2 additions and 0 deletions

View File

@ -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");