Repository navigation
eventhandler: Send SourceFilterSettingsChanged for filter changes - #7
Merged
Merged
Conversation
SourceFilterSettingsChanged was only sent from the core "source_update" signal, which libobs never fires for filters: filters are always private sources, and private sources fire no core signals. So the event never arrived, from the UI or from SetSourceFilterSettings. Listen on each filter's own "update" signal, connected and disconnected with the filter's other signals, and drop the unreachable filter case from the core handler so a change can never be reported twice. Co-Authored-By: Ruggero Tomaselli <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 14, 2026
zackees
pushed a commit
to rdoupe/obs-studio
that referenced
this pull request
Oct 14, 2026
Changing a filter's settings, in its properties or with SetSourceFilterSettings, never sent SourceFilterSettingsChanged: the event handler only listened for it on the core "source_update" signal, which libobs never fires for filters (they are private sources). obs-rust/obs-websocket#7 listens on each filter's own "update" signal, following the approach Ruggero Tomaselli proposed upstream. That fix already shipped with the submodule pin to 547f5ea; this adds the regression test. test_ws_filter_settings_event builds the plugin's event handler from its sources against real libobs (frontend calls stubbed) and records the events sent for a real input with a real filter: 3 of 4 cases fail with the submodule at 3e46553, the fork commit before obs-rust#7 was merged, and all 4 pass at 547f5ea. Reported upstream in obsproject/obs-websocket#1303 by xurei. Refs obs-rust#536. Co-Authored-By: Ruggero Tomaselli <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Local-Gate: v1 tree=8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc secs=528 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run Ci-Attestation: {"at":1792000162,"gate":"rust/all/fmt","host":"linux-x86_64","key":"9b0287efef1ab79656e10f25444ba35d3d1dbd37d85567a55809386cb0b5a229","lane":"lint","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":58,"stamp":"a01fb9eaf38829a4506c4ccbbf76595b","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"9b0287efef1ab79656e10f25444ba35d3d1dbd37d85567a55809386cb0b5a229","lane":"lint","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":58,"stamp":"50041ceb0a8a0d3a48446ba61bc53ea5","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"cadc5a810b344592f1f506d6ddcf982f79c923836510cc55c6b593268780798c","lane":"rust-test","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":132,"stamp":"df532c31549d54ba452ea0fe8ed508aa","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"3d47000911152743b68d377b573816a5","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"8ab363dc685be71ade04936ec0f4602f","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"707c852029b1b3cf84349bc9f1210e3f","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"7cb431c264b4b57fcefaf24aec71b6b2","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"5d6d37a2248e04abe2c50427a38d4c2d","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"04dea621c47f8a473f27e04551531028","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"e4c49bd9a27c3410632681decbebf09e52bfa0c7bb316cf1386fbc53c25ebdde","lane":"tier2-linux","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":222,"stamp":"5dc4379d36d841b98a449b2108283ef3","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"}
zackees
pushed a commit
to nathan-v/obs-studio
that referenced
this pull request
Oct 14, 2026
) Changing a filter's settings, in its properties or with SetSourceFilterSettings, never sent SourceFilterSettingsChanged: the event handler only listened for it on the core "source_update" signal, which libobs never fires for filters (they are private sources). obs-rust/obs-websocket#7 listens on each filter's own "update" signal, following the approach Ruggero Tomaselli proposed upstream. That fix already shipped with the submodule pin to 547f5ea; this adds the regression test. test_ws_filter_settings_event builds the plugin's event handler from its sources against real libobs (frontend calls stubbed) and records the events sent for a real input with a real filter: 3 of 4 cases fail with the submodule at 3e46553, the fork commit before obs-rust#7 was merged, and all 4 pass at 547f5ea. Reported upstream in obsproject/obs-websocket#1303 by xurei. Refs obs-rust#536. Local-Gate: v1 tree=8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc secs=528 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run Ci-Attestation: {"at":1792000162,"gate":"rust/all/fmt","host":"linux-x86_64","key":"9b0287efef1ab79656e10f25444ba35d3d1dbd37d85567a55809386cb0b5a229","lane":"lint","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":58,"stamp":"a01fb9eaf38829a4506c4ccbbf76595b","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"9b0287efef1ab79656e10f25444ba35d3d1dbd37d85567a55809386cb0b5a229","lane":"lint","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":58,"stamp":"50041ceb0a8a0d3a48446ba61bc53ea5","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"cadc5a810b344592f1f506d6ddcf982f79c923836510cc55c6b593268780798c","lane":"rust-test","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":132,"stamp":"df532c31549d54ba452ea0fe8ed508aa","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"3d47000911152743b68d377b573816a5","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"8ab363dc685be71ade04936ec0f4602f","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"707c852029b1b3cf84349bc9f1210e3f","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"7cb431c264b4b57fcefaf24aec71b6b2","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"5d6d37a2248e04abe2c50427a38d4c2d","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"55fa0daa0eff2ebcdd41b3941bca2c001a0c3998b942ad3d5df12400cdc80383","lane":"cross","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":116,"stamp":"04dea621c47f8a473f27e04551531028","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Ci-Attestation: {"at":1792000162,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"e4c49bd9a27c3410632681decbebf09e52bfa0c7bb316cf1386fbc53c25ebdde","lane":"tier2-linux","parents":["a48a9a13d80d3ac5ded749093e6ac2a08855e189"],"secs":222,"stamp":"5dc4379d36d841b98a449b2108283ef3","tree":"8b10f67b62e1a9d18ccda31dea73ac0af8dcf0bc","v":1,"via":"run"} Co-authored-by: Ruggero Tomaselli <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
eventhandler: Send SourceFilterSettingsChanged for filter changes
SourceFilterSettingsChangedwas only sent from the coresource_updatesignal, which libobs never fires for filters: filters are always private sources, and private sources fire no core signals. So the event never arrived, whether the settings were changed in OBS or withSetSourceFilterSettings(upstream obsproject/obs-websocket#1303).The handler now listens on each filter's own
updatesignal, connected and disconnected with the filter's other signals (enable,rename), and the unreachable filter case is dropped from the core handler so a change can never be reported twice. This follows the approach Ruggero Tomaselli proposed upstream in obsproject/obs-websocket#1346.Tested in obs-rust/obs-studio with
test_ws_filter_settings_event(3 of 4 cases fail before, 4 of 4 pass after, both libobs lanes) and end to end over obs-websocket: threeSetSourceFilterSettingscalls on a Color Correction filter now send threeSourceFilterSettingsChangedevents with the new settings (none before).Fixes obs-rust/obs-studio#536. The obs-rust/obs-studio PR that moves the submodule to this commit, opened once this merges, carries the regression test.
🤖 Generated with Claude Code