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 cancellation of thumbnailer loop on input stream close #21

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

nassah221
Copy link
Collaborator

@nassah221 nassah221 commented Mar 16, 2023

This PR addresses a bug introduced with #20 for issue #16 where the Peersnap(thumbnailer) would not exit it's RTP read loop when input stream was stopped or closed. The issue seemed to appear when using OBS to stream on either RTMP or FTL protocols.

The fix required deriving a contextWithCancel from the parent context in control and invoking the cancel func in control.StopStream

@clone1018 clone1018 merged commit 7c9fc5d into Glimesh:main Mar 16, 2023
@clone1018
Copy link
Member

Woo!

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