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 in audio source #3

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Fix crash in audio source #3

merged 1 commit into from
Jan 21, 2024

Conversation

2hdddg
Copy link
Owner

@2hdddg 2hdddg commented Jan 21, 2024

Pulse Audio source is currently the only source that has its own thread to poll for changes. Embedded Lua is not thread safe so at some cases publishing audio source changes on that thread caused the program to crash. This refactors to make sure that publishing of source states to Lua always happens on main thread.

Pulse Audio source is currently the only source that has its own thread
to poll for changes. Embedded Lua is not thread safe so at some cases
publishing audio source changes on that thread caused the program to
crash. This refactors to make sure that publishing of source states to
Lua always happens on main thread.
@2hdddg 2hdddg merged commit 07a84c7 into main Jan 21, 2024
2 checks passed
@2hdddg 2hdddg deleted the fix-audio-threading branch January 21, 2024 15:31
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.

1 participant