[MPlayer-cvslog] r35476 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Sun Nov 25 15:40:41 CET 2012


Author: reimar
Date: Sun Nov 25 15:40:41 2012
New Revision: 35476

Log:
vo_gl: react to expose events even when not paused.

This improves behaviour for slideshows, though it will
cause worse performance when there are a lot of expose
events (e.g. when dragging some other window over the
video window, or when no hardware mouse support is
available).

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Sun Nov 25 15:38:58 2012	(r35475)
+++ trunk/libvo/vo_gl.c	Sun Nov 25 15:40:41 2012	(r35476)
@@ -151,7 +151,6 @@ static int stereo_mode;
 static int stipple;
 static enum MPGLType backend;
 
-static int int_pause;
 static int eq_bri = 0;
 static int eq_cont = 0;
 static int eq_sat = 0;
@@ -711,7 +710,6 @@ config(uint32_t width, uint32_t height, 
   is_yuv |= (xs << 8) | (ys << 16);
   glFindFormat(format, NULL, &gl_texfmt, &gl_format, &gl_type);
 
-  int_pause = 0;
   vo_flipped = !!(flags & VOFLAG_FLIPPING);
 
   if (create_window(d_width, d_height, flags, title) < 0)
@@ -741,7 +739,7 @@ static void check_events(void)
         initGl(vo_dwidth, vo_dheight);
     }
     if(e&VO_EVENT_RESIZE) resize(vo_dwidth,vo_dheight);
-    if(e&VO_EVENT_EXPOSE && int_pause) redraw();
+    else if(e&VO_EVENT_EXPOSE) redraw();
 }
 
 /**
@@ -1422,10 +1420,6 @@ static const struct {
 static int control(uint32_t request, void *data)
 {
   switch (request) {
-  case VOCTRL_PAUSE:
-  case VOCTRL_RESUME:
-    int_pause = (request == VOCTRL_PAUSE);
-    return VO_TRUE;
   case VOCTRL_QUERY_FORMAT:
     return query_format(*(uint32_t*)data);
   case VOCTRL_GET_IMAGE:


More information about the MPlayer-cvslog mailing list