Simple DirectMedia Layer https://libsdl.org
Find a file
bubbleguuum 5d4a7f9ffe Fix opening pipewire device blocking indefinitely if no device
If wireplumber is not running or if there is no audio device,
PIPEWIRE_OpenDevice could remain stuck indefinityely on PIPEWIRE_pw_thread_loop_wait
because priv->stream_init_status is never equal to PW_READY_FLAG_ALL_PREOPEN_BITS.
Use PIPEWIRE_pw_thread_loop_timed_wait instead with a 2 seconds timeout and bail
out with an error on timeout.
A 2 seconds timeout seems plenty enough: in my observations, when there is an audio device,
the wait for the device to be ready is just a few milliseconds.
2026-06-05 11:24:37 +02:00
.github
android-project
build-scripts
cmake
docs
examples
include
src Fix opening pipewire device blocking indefinitely if no device 2026-06-05 11:24:37 +02:00
test
VisualC
VisualC-GDK
wayland-protocols
Xcode
.clang-format
.clang-tidy
.editorconfig
.gitignore
.wikiheaders-options
AGENTS.md
Android.mk
BUGS.txt
CLAUDE.md
CMakeLists.txt
CREDITS.md
INSTALL.md
LICENSE.txt
README.md
WhatsNew.txt

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)