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

reimar subversion at mplayerhq.hu
Sat Apr 24 18:58:25 CEST 2010


Author: reimar
Date: Sat Apr 24 18:58:24 2010
New Revision: 31065

Log:
Disable OSD support by default if the necessary OpenGL functionality is missing.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Sat Apr 24 18:52:06 2010	(r31064)
+++ trunk/libvo/vo_gl.c	Sat Apr 24 18:58:24 2010	(r31065)
@@ -490,6 +490,8 @@ static void autodetectGlExtensions(void)
     force_pbo     = strstr(extensions, "_pixel_buffer_object")      ? is_ati : 0;
   if (extensions && use_rectangle == -1)
     use_rectangle = strstr(extensions, "_texture_non_power_of_two") ?      0 : 0;
+  if (use_osd == -1)
+    use_osd = mpglBindTexture != NULL;
   if (use_yuv == -1)
     use_yuv = glAutodetectYUVConversion();
   if (is_ati && (lscale == 1 || lscale == 2 || cscale == 1 || cscale == 2))
@@ -1106,7 +1108,7 @@ static int preinit_internal(const char *
     gltype = GLTYPE_W32;
 #endif
     many_fmts = 1;
-    use_osd = 1;
+    use_osd = -1;
     scaled_osd = 0;
     use_aspect = 1;
     use_ycbcr = 0;


More information about the MPlayer-cvslog mailing list