pipewire/src/examples
David Svensson Fors 0b523e4334 SDL examples: all SDL operations in one thread
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
2018-01-18 15:43:46 +01:00
..
export-sink.c SDL examples: all SDL operations in one thread 2018-01-18 15:43:46 +01:00
export-source.c export-source: allow more formats and channels 2018-01-11 10:15:51 +01:00
export-spa.c Reorganise SPA tree 2017-11-10 13:36:14 +01:00
local-v4l2.c SDL examples: all SDL operations in one thread 2018-01-18 15:43:46 +01:00
meson.build Add more generic export-spa example 2017-09-07 19:55:22 +02:00
video-play.c SDL examples: all SDL operations in one thread 2018-01-18 15:43:46 +01:00
video-src.c examples: use main_loop 2017-12-04 15:17:01 +01:00