mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-16 20:31:32 +00:00
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>
This commit is contained in:
parent
4bcc6febcf
commit
18c3313e65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user