changeset 35382:b85d632c3fe1

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).
author reimar
date Sun, 25 Nov 2012 14:40:41 +0000
parents 746e2e0577b2
children fa7a7312c47a
files libvo/vo_gl.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sun Nov 25 14:38:58 2012 +0000
+++ b/libvo/vo_gl.c	Sun Nov 25 14:40:41 2012 +0000
@@ -151,7 +151,6 @@
 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 @@
   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 @@
         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 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: