diff libvo/gl_common.c @ 31043:80036ef586ff

Add reinitialization support. Necessary for fullscreen on OSX.
author reimar
date Sun, 25 Apr 2010 10:44:53 +0000
parents 42b4b532b86a
children 4fdb46b8c2c9
line wrap: on
line diff
--- a/libvo/gl_common.c	Sun Apr 25 10:34:58 2010 +0000
+++ b/libvo/gl_common.c	Sun Apr 25 10:44:53 2010 +0000
@@ -1869,6 +1869,8 @@
   while (SDL_PollEvent(&event)) {
     res |= sdl_default_handle_event(&event);
   }
+  // poll "events" from within MPlayer code
+  res |= sdl_default_handle_event(NULL);
   if (res & VO_EVENT_RESIZE)
     sdl_set_mode(0, SDL_OPENGL | SDL_RESIZABLE);
   return res;