mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-29 00:26:14 -04:00
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.
This commit is contained in:
@@ -264,6 +264,8 @@ OBSBasic::OBSBasic(QWidget *parent)
|
||||
}
|
||||
}
|
||||
|
||||
qRegisterMetaType<int64_t>("int64_t");
|
||||
qRegisterMetaType<uint32_t>("uint32_t");
|
||||
qRegisterMetaType<OBSScene>("OBSScene");
|
||||
qRegisterMetaType<OBSSceneItem>("OBSSceneItem");
|
||||
qRegisterMetaType<OBSSource>("OBSSource");
|
||||
|
||||
Reference in New Issue
Block a user