Only show preview tally if source is shown and not active#1405
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts NDI source tally behavior so preview tally is only set when a source is showing and not active, preventing simultaneous preview+program tallies that cause rapid blinking when a source is in Program (and thus both active and showing in OBS).
Changes:
- Update tally state transitions so
on_previewis suppressed when the source is active (program takes priority). - Add a guard in the receiver thread to skip frame reception when the source is not showing, aiming to reduce OBS FPS impact for “Keep Active” sources.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Trouffman
approved these changes
Feb 19, 2026
paulpv
requested changes
Feb 19, 2026
paulpv
approved these changes
Feb 20, 2026
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.
This fixes a long standing issue with tally, first reported in issue: #687
This problem is occurring because when a source is in Program, it is both active and showing. This causes the preview and program tally lights to be set.
To fix this using the existing OBS API, we will only show the preview tally if the source is showing and not active. This means DistroAV will never set on_preview and on_program to true. It is only one or the other, with on_program taking priority. These are the two scenarios which change...
Here is when the source is on program, no green line (on_preview) for the cyan scene, only the red line (on_program) is shown.

Here is when the source is on program AND on preview, but we only show the red line (on_program) as it takes priority.

To handle the more robust case of number 2, a change is needed in the OBS API to identify when a source is actually on preview.