[FFmpeg-cvslog] lavd/sdl: make waiting spurious wakeup aware
Lukasz Marek
git at videolan.org
Sat Feb 8 12:42:29 CET 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Fri Feb 7 00:31:29 2014 +0100| [18c3313e65f70646858b58fcae6c95308cad0945] | committer: Michael Niedermayer
lavd/sdl: make waiting spurious wakeup aware
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18c3313e65f70646858b58fcae6c95308cad0945
---
libavdevice/sdl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c
index 72d327e..2f36f63 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);
More information about the ffmpeg-cvslog
mailing list