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

Best effort avoid crash when media transport adapter not using group lock #4281

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

nanangizz
Copy link
Member

@nanangizz nanangizz commented Jan 31, 2025

Due to asynchronous conference (#3928), port may still be accessed after removed from bridge. A media transport adapter may be destroyed immediately after port removal and when it is still being accessed after that, crash will occur. Or as the stream is "disconnected" from the underlying transport by the adapter, the stream cannot sync the destroy timing with the transport (i.e: cannot add/dec ref to the transport). This PR tries to maintain link of the stream to the underlying transport of a media transport adapter.

Also in this PR, try to stop streaming when stream destroy is invoked (for audio stream, video stream has already done it).

@nanangizz nanangizz merged commit 46111c4 into master Feb 3, 2025
37 of 41 checks passed
@nanangizz nanangizz deleted the custom-tp-grp-lock branch February 3, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants