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

michael subversion
Wed Mar 10 17:11:02 CET 2010


Author: michael
Date: Wed Mar 10 17:11:02 2010
New Revision: 22435

Log:
Only reschedule refresh if we successfully removed the scheduled one.
Fixes some spurious error messages.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Wed Mar 10 16:45:46 2010	(r22434)
+++ trunk/ffplay.c	Wed Mar 10 17:11:02 2010	(r22435)
@@ -1462,9 +1462,10 @@ static int get_video_frame(VideoState *i
             //Make sure there are no long delay timers (ideally we should just flush the que but thats harder)
             for(i=0; i<VIDEO_PICTURE_QUEUE_SIZE; i++){
                 if(is->pictq[i].timer_id){
-                    SDL_RemoveTimer(is->pictq[i].timer_id);
+                    if(SDL_RemoveTimer(is->pictq[i].timer_id)){
                     is->pictq[i].timer_id=0;
                     schedule_refresh(is, 1);
+                    }
                 }
             }
             while (is->pictq_size && !is->videoq.abort_request) {



More information about the ffmpeg-cvslog mailing list