Refactor NDI name tokens: replace <filter>/<source> with ${filter}/${source}#1445
Conversation
<filter>/<source> with $filter/$source
|
Can we keep the brace option only? I could see problem if someone want to use the $ character in their naming. |
…ilter/$source) Agent-Logs-Url: https://github.com/DistroAV/DistroAV/sessions/4fa24dc3-6838-45be-a24f-edfce9bcc455 Co-authored-by: paulpv <[email protected]>
Done in acdc846. Dropped bare |
<filter>/<source> with $filter/$source<filter>/<source> with ${filter}/${source}
@Trouffman A single |
There was a problem hiding this comment.
Pull request overview
Modernizes NDI filter name template tokens from legacy angle-bracket placeholders (<filter>, <source>) to brace-style placeholders (${filter}, ${source}), while retaining backward compatibility with the legacy forms.
Changes:
- Updated
ndi_sender_createto recognize and replace both${source}/${filter}and legacy<source>/<filter>. - Updated the default localized filter NDI name template to use the new
${...}syntax.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/ndi-filter.cpp |
Adds ${source}/${filter} token detection and replacement while keeping <source>/<filter> working. |
data/locale/en-US.ini |
Updates the default filter NDI name template string to the new ${filter} (${source}) format. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I'm okay to only support the brace. And disable the <> support too. We will release a temp update very quickly |
…forms and fix mutation bug Agent-Logs-Url: https://github.com/DistroAV/DistroAV/sessions/4716536a-b402-4f2b-b17d-e55201580783 Co-authored-by: paulpv <[email protected]>
Done in 4be9348. Only
Done in 4be9348. |
|
@paulpv - can you confirm when this is tested ? :D |
Sorry, I had/have no plans to do any [focused?] testing on this. :/ |
Dismissing because GitHub Copilot was messing up today (confirmed by https://www.githubstatus.com) and I might have been clicking buttons too fast.

NDI filter name replacement tokens used angle-bracket syntax (
<filter>,<source>). This modernizes them exclusively to the brace-style${filter}/${source}syntax. Legacy forms (<filter>,<source>) and bare$filter/$sourceare no longer supported.Changes
src/ndi-filter.cpp: Updatedndi_sender_createto recognize only${source}and${filter}tokens. All legacy forms have been removed. Token presence is now checked against the original template string before any replacements are applied, preventing an injected source or filter name that contains a token string from triggering unintended expansion:data/locale/en-US.ini: Updated the default NDI name value to use the new syntax: