[FFmpeg-cvslog] r14934 - trunk/ffplay.c

michael subversion
Sun Aug 24 02:32:10 CEST 2008


Author: michael
Date: Sun Aug 24 02:32:10 2008
New Revision: 14934

Log:
Ensure that SDL_AddTimer() is never called with a delay of 0 because
this leads to a runaway creation of timers. We never pass 0 currently
but its safer to check for it explicitly as changes to the code can
easily lead to 0 being used.


Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Sun Aug 24 02:32:10 2008
@@ -916,6 +916,7 @@ static Uint32 sdl_refresh_timer_cb(Uint3
 /* schedule a video refresh in 'delay' ms */
 static void schedule_refresh(VideoState *is, int delay)
 {
+    if(!delay) delay=1; //SDL seems to be buggy when the delay is 0
     SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
 }
 




More information about the ffmpeg-cvslog mailing list