fix(audio): check pthread_create return in ALSA backend #149

Merged
OragonEfreet merged 1 commit from fix/alsa-pthread-error-check into main 2026-06-03 20:08:50 +02:00
Owner

Add error checking for pthread_create() in alsa_open_device().
Previously, if thread creation failed, the device would be returned
as if successfully initialized, leading to a broken audio device.

Also adds null check for audio buffer allocation.

Add error checking for pthread_create() in alsa_open_device(). Previously, if thread creation failed, the device would be returned as if successfully initialized, leading to a broken audio device. Also adds null check for audio buffer allocation.
fix(audio): check pthread_create return in ALSA backend
All checks were successful
Documentation / build-docs (pull_request) Successful in 8s
QA / cert (pull_request) Successful in 29s
Build and Test / linux-linux-gcc / shared (pull_request) Successful in 16s
Build and Test / linux-linux-gcc / static (pull_request) Successful in 17s
Build and Test / linux-windows-mingw / shared (pull_request) Successful in 25s
Build and Test / linux-windows-mingw / static (pull_request) Successful in 25s
aa354c5a0c
Add error checking for pthread_create() in alsa_open_device().
Previously, if thread creation failed, the device would be returned
as if successfully initialized, leading to a broken audio device.

Also adds null check for audio buffer allocation.
OragonEfreet added this to the 1.0 milestone 2026-06-03 17:57:12 +02:00
OragonEfreet force-pushed fix/alsa-pthread-error-check from aa354c5a0c
All checks were successful
Documentation / build-docs (pull_request) Successful in 8s
QA / cert (pull_request) Successful in 29s
Build and Test / linux-linux-gcc / shared (pull_request) Successful in 16s
Build and Test / linux-linux-gcc / static (pull_request) Successful in 17s
Build and Test / linux-windows-mingw / shared (pull_request) Successful in 25s
Build and Test / linux-windows-mingw / static (pull_request) Successful in 25s
to ce288e1402
All checks were successful
Documentation / build-docs (pull_request) Successful in 9s
QA / cert (pull_request) Successful in 29s
Build and Test / linux-linux-gcc / shared (pull_request) Successful in 16s
Build and Test / linux-linux-gcc / static (pull_request) Successful in 16s
Build and Test / linux-windows-mingw / shared (pull_request) Successful in 25s
Build and Test / linux-windows-mingw / static (pull_request) Successful in 25s
2026-06-03 20:04:28 +02:00
Compare
OragonEfreet deleted branch fix/alsa-pthread-error-check 2026-06-03 20:08:51 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
OragonEfreet/banjo!149
No description provided.