[MPlayer-cvslog] r34123 - in trunk/gui: interface.c ui/main.c

ib subversion at mplayerhq.hu
Wed Sep 21 16:20:05 CEST 2011


Author: ib
Date: Wed Sep 21 16:20:04 2011
New Revision: 34123

Log:
Force redraw of main window after playback has ended.

This will draw the evSetMoviePosition item at 100% which
may not happen due to the GUI_REDRAW_WAIT delay otherwise.

Modified:
   trunk/gui/interface.c
   trunk/gui/ui/main.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Wed Sep 21 15:55:40 2011	(r34122)
+++ trunk/gui/interface.c	Wed Sep 21 16:20:04 2011	(r34123)
@@ -765,6 +765,8 @@ int gui(int what, void *data)
 
     case GUI_END_FILE:
 
+        uiEventHandling(evRedraw, 1);
+
         if (!uiGotoTheNext && guiInfo.Playing) {
             uiGotoTheNext = 1;
             break;

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Wed Sep 21 15:55:40 2011	(r34122)
+++ trunk/gui/ui/main.c	Wed Sep 21 16:20:04 2011	(r34123)
@@ -403,7 +403,7 @@ set_volume:
           unsigned now = GetTimerMS();
           if ((now > last_redraw_time) &&
               (now < last_redraw_time + GUI_REDRAW_WAIT) &&
-              !uiPlaybarFade)
+              !uiPlaybarFade && (iparam == 0))
             break;
           last_redraw_time = now;
         }


More information about the MPlayer-cvslog mailing list