Skip to content

Add filter_add so all filter sender are created at startup#1452

Merged
Trouffman merged 2 commits into
DistroAV:masterfrom
BitRate27:fixaudiofiltermissing
Apr 23, 2026
Merged

Add filter_add so all filter sender are created at startup#1452
Trouffman merged 2 commits into
DistroAV:masterfrom
BitRate27:fixaudiofiltermissing

Conversation

@BitRate27
Copy link
Copy Markdown
Contributor

@BitRate27 BitRate27 commented Apr 23, 2026

This is to fix (#1449).
The regression was caused by "Default NDI name for filters to be <filter> (<source>)" (#1412)

Instead of checking to see if the sender needs creating in the filter_tick (which is not called on an audio only filter) we now do that check in the new ndi_filter_add function.

A side note on implementation: copilot suggested numerous changes to fix this, one of them being to add a filter_add callback. The other changes suggested by copilot were to supposedly fix a race condition which could not be duplicated so those suggested changes were not included in this PR.

This is a regression and should be included in a hot fix in 6.2.1

@Trouffman
Copy link
Copy Markdown
Collaborator

It solve the problem for the Audio Filter.

BUT the audio is "always running" as well (aka not dependent on the parent / source being active/showing or not.)

@Trouffman
Copy link
Copy Markdown
Collaborator

Tested and confirmed to work on both audio & video filter.

@Trouffman Trouffman changed the title Add filter_add so audio only sender created at startup Add filter_add so all filter sender are created at startup Apr 23, 2026
@Trouffman Trouffman self-requested a review April 23, 2026 17:09
@Trouffman
Copy link
Copy Markdown
Collaborator

This will be merged. Acknowledging the research work by @paulpv here :)

Copy link
Copy Markdown
Collaborator

@Trouffman Trouffman left a comment

Choose a reason for hiding this comment

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

Tested and address the issue it fixes.

@Trouffman Trouffman merged commit ab02803 into DistroAV:master Apr 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants