Repository navigation
Conversation
|
I built this PR on Windows against OBS 33.0.1 (obs-websocket 5.7.6, Visual Studio 2022) and it does not compile as submitted. Both new lines fail with error C3867: The source signal_handler_connect(sh, "update", SourceUpdatedMultiHandler, this);
signal_handler_disconnect(sh, "update", SourceUpdatedMultiHandler, this);Tested with that change on Windows 11 and OBS 33.0.1: moving the opacity slider of a Color Correction filter in the OBS UI now sends Our use case: we control OBS filters from hardware MIDI controllers through obs-websocket, and the controller has to follow changes made in OBS. Without this event the controller shows stale values. |
Description
This PR fixes #1303. I've added subscription to
updateevent for filtersMotivation and Context
This issue exists because filters are private by design.
https://github.com/obsproject/obs-studio/blob/30d3b89b3bd02c40ca55d071b2fd038a1c40caa6/libobs/obs-source.c#L436-L460
And, always by design, global/core signals are not fired for private sources
https://github.com/obsproject/obs-studio/blob/30d3b89b3bd02c40ca55d071b2fd038a1c40caa6/libobs/obs-internal.h#L1031-L1042
The solution is to subscribe to source(filter)'s signal
updatein order to fire the correspondingSourceFilterSettingsChangedevent on websocketHow Has This Been Tested?
This PR has not been tested yet. I don't have knowledge to compile this code, only to understading a little bit.
Will test the artifact produced by CI
Types of changes
Checklist:
masteror arelease/*branch.