From c1deaf9c3fb849e89dc3f65873be740946d886d4 Mon Sep 17 00:00:00 2001 From: Rat <52238970+ratwithacompiler@users.noreply.github.com> Date: Fri, 2 Jul 2021 22:54:59 +0200 Subject: [PATCH] UI: Fix audio mixer UI not updating from threads When changing a source's audio mixers/tracks or sync offset with obs_source_set_audio_mixers or obs_source_set_sync_offset from a non UI thread while the advanced audio properties panel is open the UI fields will not update until closed and reopened. It just shows an error on stderr for the failed invokeMethod calls that would do the update. For mixers and sync offset respectively: QMetaMethod::invoke: Unable to handle unregistered datatype 'uint32_t' QMetaMethod::invoke: Unable to handle unregistered datatype 'int64_t' Added needed Qt registrations in window-basic-main as that's where all the needed ones for the frontend UI seem to be put. --- UI/window-basic-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 558f3a17f..2946aec63 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -264,6 +264,8 @@ OBSBasic::OBSBasic(QWidget *parent) } } + qRegisterMetaType("int64_t"); + qRegisterMetaType("uint32_t"); qRegisterMetaType("OBSScene"); qRegisterMetaType("OBSSceneItem"); qRegisterMetaType("OBSSource");