fix: Start only outputs whose OBS counterpart is active when restarting in Individual interlock - #193
Merged
hanatyan128 merged 1 commit intoSep 23, 2026
Conversation
…ng in Individual interlock
Merged
hanatyan128
deleted the
fix/issue-189-individual-restart-start-conditions
branch
September 23, 2026 13:38
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.
Summary
Fixes the restarts reported in #189. With the "Individual" interlock, a restart of a running filter now starts only the output types whose matching OBS output is running. A streaming slot no longer goes live while OBS is not streaming, and a replay buffer or stream recording is no longer started only to be stopped on a later tick.
startOutput()andrestartOutput()take the interlock type. All callers are inonIntervalTimerTimeout(), which already has it.startOutput()decides once per output type whether to start it:obs_frontend_streaming_active()/obs_frontend_recording_active()/obs_frontend_replay_buffer_active()).startOutput()returns before building the infrastructure.restartOutput()and the source resolution change restart.FIXMEat therestartOutput()call that pointed at Individual interlock restarts start outputs whose OBS counterpart is not running, and the next tick stops them #189 is removed. The reconnectFIXMEnext to it is kept.Only
src/plugin-main.cppandsrc/plugin-main.hppare changed.Root cause
startOutput(), which started every type that was configured and had its dock toggle on, without looking at the interlock.someStreamingsStarting()returns early from every tick until then, so it went live on its service before it was stopped.Known limitations
dev.obs_output_stop()on a reconnecting output (the reconnectFIXME), and an Apply without any change still restarts the outputs (Applying the filter properties without changing anything restarts the outputs #178). Both are unchanged fromdev.Verification
Manual testing
Watch the log for
Settings change detected, Attempting restartand theStarting ... succeededlines that follow it.Individual interlock:
Starting recording output succeededfollows the restart, there is noStarting replay buffer succeeded, and the UI does not freeze.Other interlock modes:
dev.Shutdown:
Environments:
Fixes #189
🤖 Generated with Claude Code