]> git.sesse.net Git - nageru/blobdiff - vumeter.h
Update the VU/LRA meters from the GUI thread; fixes an issue where they lock up.
[nageru] / vumeter.h
index 3492f770c69e9e61390a85e1b96cb58cebf073b1..720a12e5217b2225d3f0f022b45b8e2b79c40c32 100644 (file)
--- a/vumeter.h
+++ b/vumeter.h
@@ -17,7 +17,7 @@ public:
        void set_level(float level_lufs) {
                std::unique_lock<std::mutex> lock(level_mutex);
                this->level_lufs = level_lufs;
-               update();
+               QMetaObject::invokeMethod(this, "update", Qt::AutoConnection);
        }
 
 private: