Commit 18c3313e authored by Lukasz Marek's avatar Lukasz Marek Committed by Michael Niedermayer

lavd/sdl: make waiting spurious wakeup aware

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4bcc6feb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment