[MPlayer-cvslog] r36388 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Aug 1 19:34:54 CEST 2013


Author: ib
Date: Thu Aug  1 19:34:54 2013
New Revision: 36388

Log:
Add a redraw and event handling to GUI_PREPARE.

It may take some time until MPlayer will call a GUI_REDRAW after the
GUI_PREPARE, which will result in windows being exposed with unhandled
events waiting.

This way, windows will be redrawn earlier which looks nicer.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Aug  1 19:29:47 2013	(r36387)
+++ trunk/gui/interface.c	Thu Aug  1 19:34:54 2013	(r36388)
@@ -52,6 +52,7 @@
 #include "libmpcodecs/vf.h"
 #include "libvo/video_out.h"
 #include "libvo/x11_common.h"
+#include "osdep/timer.h"
 #ifdef CONFIG_DVDREAD
 #include "stream/stream_dvd.h"
 #endif
@@ -382,7 +383,10 @@ int gui(int what, void *data)
 
     case GUI_PREPARE:
 
+        uiEvent(ivRedraw, True);
         wsMouseVisibility(&guiApp.videoWindow, wsHideMouseCursor);
+        usec_sleep(20000);
+        wsEvents();
 
         if (guiInfo.NewPlay == GUI_FILE_NEW) {
             audio_id  = -1;


More information about the MPlayer-cvslog mailing list