diff libvo/video_out.c @ 31315:ad274a5b093b

For vos that support the new libvo API (provide UPDATE_SCREENINFO), avoid duplicating some Gui-related code.
author reimar
date Sun, 13 Jun 2010 12:04:13 +0000
parents b080b729c958
children 04071c66eeb1
line wrap: on
line diff
--- a/libvo/video_out.c	Sun Jun 13 11:51:41 2010 +0000
+++ b/libvo/video_out.c	Sun Jun 13 12:04:13 2010 +0000
@@ -30,6 +30,9 @@
 #include "aspect.h"
 #include "geometry.h"
 
+#ifdef CONFIG_GUI
+#include "gui/interface.h"
+#endif
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "input/input.h"
@@ -361,6 +364,12 @@
     vo_dy += xinerama_y;
     vo_dwidth = d_width;
     vo_dheight = d_height;
+#ifdef CONFIG_GUI
+    if (use_gui) {
+      // GUI creates and manages window for us
+      guiGetEvent(guiSetShVideo, 0);
+    }
+#endif
   }
 
   return vo->config(width, height, d_width, d_height, flags, title, format);