Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Retry SDL video init with offscreen on macOS

Ensure SDL's event/semaphore machinery remains functional on headless
macOS systems; without this fallback the cooperative scheduler can spin
at
100% CPU

+10 -1
+10 -1
firmware/target/hosted/sdl/system-sdl.c
··· 252 252 #endif 253 253 254 254 #ifndef __WIN32 /* Fails on Windows */ 255 - SDL_InitSubSystem(SDL_INIT_VIDEO); 255 + if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) { 256 + #ifdef __APPLE__ 257 + /* Video init failed (likely headless — no display available on this Mac). 258 + * Retry with the offscreen driver so SDL's internal event/semaphore 259 + * machinery stays fully functional; without it the cooperative scheduler 260 + * spins at 100% CPU instead of sleeping. */ 261 + SDL_setenv("SDL_VIDEODRIVER", "offscreen", 1); 262 + SDL_InitSubSystem(SDL_INIT_VIDEO); 263 + #endif 264 + } 256 265 257 266 #if SDL_MAJOR_VERSION > 1 258 267 sdl_window_setup();