[FFmpeg-devel] [PATCH] lavd/sdl: make cross-thread flags volatile
Lukasz Marek
lukasz.m.luki at gmail.com
Fri Feb 7 00:47:34 CET 2014
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
---
libavdevice/sdl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c
index bef5041..e9cfd06 100644
--- a/libavdevice/sdl.c
+++ b/libavdevice/sdl.c
@@ -50,8 +50,8 @@ typedef struct {
SDL_mutex *mutex;
SDL_cond *init_cond;
int init_ret; /* return code used to signal initialization errors */
- int inited;
- int quit;
+ volatile int inited;
+ volatile int quit;
} SDLContext;
static const struct sdl_overlay_pix_fmt_entry {
--
1.8.3.2
More information about the ffmpeg-devel
mailing list