diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-07 03:31:29 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-08 15:27:00 +0400 |
commit | 18c3313e65f70646858b58fcae6c95308cad0945 (patch) | |
tree | 37fb1cf7c76087638f060844c776b6456575a9dd /libavdevice/sdl.c | |
parent | 4bcc6febcff23b4db2c135d937c6b6830657f0eb (diff) |
lavd/sdl: make waiting spurious wakeup aware
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/sdl.c')
-rw-r--r-- | libavdevice/sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c index 72d327e8e8..2f36f632d9 100644 --- a/libavdevice/sdl.c +++ b/libavdevice/sdl.c @@ -292,7 +292,7 @@ static int sdl_write_header(AVFormatContext *s) /* wait until the video system has been inited */ SDL_LockMutex(sdl->mutex); - if (!sdl->inited) { + while (!sdl->inited) { SDL_CondWait(sdl->init_cond, sdl->mutex); } SDL_UnlockMutex(sdl->mutex); |