Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/audioencoder fix #7

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Fix/audioencoder fix #7

merged 2 commits into from
Jul 11, 2022

Conversation

jkluch
Copy link
Contributor

@jkluch jkluch commented Jul 10, 2022

Up to you if you want to take this PR as is or if you want me to modify a9632c1
I only tested changing .Add() to .TryAdd() on the 'acc0' audio encoder because I was getting an error
An item with the same key has already been added. Key: aac0
but line 206 ReleaseEncoders(); should be enough to fix the issue. If you'd rather keep the .Add() calls let me know and I'll revert those.

As for the github actions workflow you made, I fixed a bug if the nightly tag task can't find a commit. I also had to make a dummy release on my fork because otherwise the publish delta artifact step was failing. It'd be nice if the workflow could handle a fork that doesn't have access to previous releases.

jkluch added 2 commits July 10, 2022 18:55
Also changed all Dictionary calls from .Add() to .TryAdd()
Either of these fixes would have prevented the error but
it doesn't hurt to have both.
@lulzsun
Copy link
Owner

lulzsun commented Jul 11, 2022

Thanks for the help! It looks good so I'll take this PR. I'll also look into the issue with GH actions workflow when I got the time.

@lulzsun lulzsun merged commit 339603e into lulzsun:main Jul 11, 2022
@jkluch jkluch deleted the fix/audioencoder-fix branch August 7, 2022 01:27
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.

2 participants