summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/sdl.c2
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);