Merge branch 'pipewire-lock' of https://github.com/ncfavier/MPD
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1753
This commit is contained in:
commit
9bcba41cd6
1
NEWS
1
NEWS
|
@ -23,6 +23,7 @@ ver 0.24 (not yet released)
|
||||||
* tags
|
* tags
|
||||||
- new tags "TitleSort", "Mood"
|
- new tags "TitleSort", "Mood"
|
||||||
* output
|
* output
|
||||||
|
- pipewire: fix corruption bug due to missing lock
|
||||||
- pipewire: map tags "Date" and "Comment"
|
- pipewire: map tags "Date" and "Comment"
|
||||||
* switch to C++20
|
* switch to C++20
|
||||||
- GCC 10 or clang 11 (or newer) recommended
|
- GCC 10 or clang 11 (or newer) recommended
|
||||||
|
|
|
@ -963,6 +963,8 @@ PipeWireOutput::SendTag(const Tag &tag)
|
||||||
|
|
||||||
struct spa_dict dict = SPA_DICT_INIT(items.data(), (uint32_t)items.size());
|
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);
|
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");
|
||||||
|
|
Loading…
Reference in New Issue