output/PipeWire: lock thread loop in SendTag

This commit is contained in:
Naïm Favier 2023-03-06 10:03:14 +01:00 committed by Max Kellermann
parent 8d2a184658
commit 949d72e368
2 changed files with 4 additions and 0 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.23.13 (not yet released)
* input
- curl: fix busy loop after connection failed
* output
- pipewire: fix corruption bug due to missing lock
ver 0.23.12 (2023/01/17)
* input

View File

@ -973,6 +973,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");