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

Close underlying stream after process failure in close #182

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Mar 19, 2024

Fixes #160

@nhz2 nhz2 changed the title Close underlying stream after process failure Close underlying stream after process failure in close Mar 19, 2024
@nhz2 nhz2 marked this pull request as ready for review March 19, 2024 16:47
@nhz2 nhz2 requested a review from mkitti March 19, 2024 16:58
@nhz2 nhz2 merged commit 3be4361 into master Mar 25, 2024
22 checks passed
@nhz2 nhz2 deleted the close-underlying-stream-after-process-failure branch March 25, 2024 23:54
@@ -26,20 +26,20 @@ function TranscodingStreams.process(
codec :: DoubleFrameEncoder,
input :: TranscodingStreams.Memory,
output :: TranscodingStreams.Memory,
error :: TranscodingStreams.Error,
error_ref :: TranscodingStreams.Error,
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused by this name change although I see it brings some clarity that this is actually a reference-like object. How is it related to the rest of the commit?

If you are going to keep this, please maintain the formatting alignment.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed it to avoid confusion with the Base.error function I had in the other process method. I'll fix up the formatting.

Copy link
Member Author

Choose a reason for hiding this comment

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

I could change the docstring for process as well to be consistent but maybe there is a better name for this argument?

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.

Safely close compressor stream after failure
2 participants