[vlc-devel] Mac OS X blank white screen problem with fix

Scott Herscher scott at collobos.com
Thu Jan 20 21:48:05 CET 2011


The last couple of months on OS X there has been a blank white screen where video should be playing.  This diff has the fix.

--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -268,7 +268,7 @@ int vout_display_opengl_ResetTextures(vout_display_opengl_t *vgl)
 
         /* Call glTexImage2D only once, and use glTexSubImage2D later */
         if (vgl->buffer[i]) {
-            glTexImage2D(VLCGL_TARGET, 0, VLCGL_FORMAT, vgl->tex_width,
+            glTexImage2D(VLCGL_TARGET, 0, 3 /* VLCGL_FORMAT */, vgl->tex_width,
                          vgl->tex_height, 0, VLCGL_FORMAT, VLCGL_TYPE,
                          vgl->buffer[i]);
         }


I sadly am not enough of a OpenGL expert to know why the old code was wrong...but it was wrong. At least on Mac OS X it was wrong.  If the maintainers of the code could integrate this fix or find out why it wasn't working correctly I'd be very grateful.

Thanks,

Scott


More information about the vlc-devel mailing list