mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
Fix video in SDL examples by invoking rendering in the same thread (pw_loop) that created the window, renderer and texture. At least on some systems, no video is shown without this patch. In those error cases, SDL_RenderPresent triggers an SDL error "The specified window has not been made current". That, in turn, has to do with how SDL uses the current thread for determing the current window. In general, the page linked to below states that the SDL API is not designed to be used from multiple threads. Reference: https://wiki.libsdl.org/CategoryRender |
||
|---|---|---|
| .. | ||
| export-sink.c | ||
| export-source.c | ||
| export-spa.c | ||
| local-v4l2.c | ||
| meson.build | ||
| video-play.c | ||
| video-src.c | ||