Skip to content

Only show preview tally if source is shown and not active#1405

Merged
Trouffman merged 6 commits into
DistroAV:masterfrom
BitRate27:quicktally
Mar 2, 2026
Merged

Only show preview tally if source is shown and not active#1405
Trouffman merged 6 commits into
DistroAV:masterfrom
BitRate27:quicktally

Conversation

@BitRate27

Copy link
Copy Markdown
Contributor

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...

  1. 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.
    ProgramNotGreen

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

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_preview is 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.

Comment thread src/ndi-source.cpp Outdated
Comment thread src/ndi-source.cpp Outdated
Comment thread src/ndi-source.cpp Outdated
Comment thread src/ndi-source.cpp
Comment thread src/ndi-source.cpp Outdated
Comment thread src/ndi-source.cpp
Comment thread src/ndi-source.cpp
@Trouffman
Trouffman merged commit ea234eb into DistroAV:master Mar 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants