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 crash when calling enableFallback/Slideshow below min layer #1772

Merged
merged 4 commits into from
Nov 24, 2021

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Nov 23, 2021

Description

enableFallbackBelowMinLayer and enableSlideshowBelowMinLayer are called from StreamPriorityBWDistributor in the WebRtcConnection thread. It is possible for the asyncTask in MediaStream to make those calls when the pipeline is already close but the MediaStream has not been destroyed yet. This results in a crash since it will end up calling selectLayer in QualityManager that tries to access the already removed pipeline directly.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

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

LGTM

@lodoyun lodoyun merged commit 36b8a35 into lynckia:master Nov 24, 2021
@lodoyun lodoyun deleted the fix/crashWhenSettingFallbackBelowMin branch November 24, 2021 10:19
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