Merge branch 'pipewire-lock' of https://github.com/ncfavier/MPD

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1753
This commit is contained in:
Max Kellermann 2023-03-06 10:05:27 +01:00
commit 9bcba41cd6
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -23,6 +23,7 @@ ver 0.24 (not yet released)
* tags
- new tags "TitleSort", "Mood"
* output
- pipewire: fix corruption bug due to missing lock
- pipewire: map tags "Date" and "Comment"
* switch to C++20
- GCC 10 or clang 11 (or newer) recommended

View File

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