Skip to content

fix missing commit and batch cap for silence in testsrc#427

Merged
vt-tv merged 2 commits intodmf-mxl:mainfrom
aguo-RV:bugfix/fix-testsrc-silence-commit
Apr 8, 2026
Merged

fix missing commit and batch cap for silence in testsrc#427
vt-tv merged 2 commits intodmf-mxl:mainfrom
aguo-RV:bugfix/fix-testsrc-silence-commit

Conversation

@aguo-RV
Copy link
Copy Markdown
Contributor

@aguo-RV aguo-RV commented Mar 3, 2026

Resolves 449

The silence-filling path in testsrc.cpp is missing the commit samples call.

It also doesn't use an audio batch cap like the one found in looping_filesrc.cpp.

@vt-tv
Copy link
Copy Markdown
Contributor

vt-tv commented Apr 7, 2026

@aguo-RV could you create a bug report and link it to this PR? I'll merge this one it is linked to an issue.

@vt-tv
Copy link
Copy Markdown
Contributor

vt-tv commented Apr 7, 2026

@KimonHoffmann do you have a few minutes to review this?

Copy link
Copy Markdown
Collaborator

@KimonHoffmann KimonHoffmann left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for the contribution!
Just one small remark regarding the use of memset.

Could you please fix up the original commit and take the opportunity to rebase on the current main?

if (fragment.size != 0)
{
auto const dst = static_cast<std::uint8_t*>(fragment.pointer) + (chan * payloadBuffersSlices.stride);
::memset(dst, 0, fragment.size); // fill with silence
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe use std::memset here?
Regardless of that memset needs cstring to be included. Could you please add this?

@aguo-RV aguo-RV force-pushed the bugfix/fix-testsrc-silence-commit branch 2 times, most recently from b5d0da0 to dc6bbe2 Compare April 8, 2026 15:54
@vt-tv
Copy link
Copy Markdown
Contributor

vt-tv commented Apr 8, 2026

@aguo-RV The latest commit is missing the --signoff. you need to amend the commit and force-push in the branch.

aguo-RV added 2 commits April 8, 2026 13:13
Signed-off-by: Andrew Guo <andrew.guo@rossvideo.com>
Signed-off-by: Andrew Guo <andrew.guo@rossvideo.com>
@aguo-RV aguo-RV force-pushed the bugfix/fix-testsrc-silence-commit branch from dc6bbe2 to 3878fc3 Compare April 8, 2026 17:14
@aguo-RV
Copy link
Copy Markdown
Contributor Author

aguo-RV commented Apr 8, 2026

@aguo-RV The latest commit is missing the --signoff. you need to amend the commit and force-push in the branch.

Done, sorry about that

Copy link
Copy Markdown
Collaborator

@KimonHoffmann KimonHoffmann left a comment

Choose a reason for hiding this comment

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

Thank you for taking care of the requested change.
Looks good to me!

@vt-tv vt-tv added the backport/v1.0 This PR should be back ported to the release branch of version 1.0. label Apr 8, 2026
@vt-tv vt-tv merged commit b6a9374 into dmf-mxl:main Apr 8, 2026
11 checks passed
@backport-mxl-pull-requst
Copy link
Copy Markdown

Backport failed for release/v1.0, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release/v1.0
git worktree add -d .worktree/backport/427/-/release/v1.0 origin/release/v1.0
cd .worktree/backport/427/-/release/v1.0
git switch --create backport/427/-/release/v1.0
git cherry-pick -x d019deff4e0766fb8de17e33846a2022bdac4665 b6a937455adad008b83e3536f4aab8a37cc1e991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v1.0 This PR should be back ported to the release branch of version 1.0.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testsrc doesn't commit silence for skipped audio samples

4 participants