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

opensles: fix deadlock when stopping a stream #2061

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

philburk
Copy link
Collaborator

@philburk philburk commented Jul 8, 2024

Temporarily unlock() and lock() when Destroy()ing a stream because that joins the callback thread.

Fixes a rare ANR.

Fixes #2059

Temporarily unlock() and lock() when Destroy()ing a stream
because that joins the callback thread.

Fixes a rare ANR.

Fixes #2059
@philburk philburk requested a review from robertwu1 July 8, 2024 21:31
@philburk philburk merged commit b74c2eb into main Jul 11, 2024
3 checks passed
@philburk philburk deleted the fix_deadlock_2059 branch July 11, 2024 01:06
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.

OpenSL can hang if callback returns DataCallbackResult::Stop
2 participants