diff --git a/src/plugins/mpris/mpris.cpp b/src/plugins/mpris/mpris.cpp index 11faab47e..437903659 100644 --- a/src/plugins/mpris/mpris.cpp +++ b/src/plugins/mpris/mpris.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include extern "C" { @@ -102,8 +103,10 @@ static class MPRISRemote : public IPlaybackRemote { void MPRISLoop() { while (!stop_processing) { if (bus) { + std::unique_lock lock(sd_mutex); while(sd_bus_process(bus, NULL) > 0); } + std::this_thread::sleep_for(std::chrono::milliseconds(10)); } }