[vlc-commits] OpenGL: enable SPU blending

Rémi Denis-Courmont git at videolan.org
Sun Oct 28 17:33:02 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 28 18:32:15 2012 +0200| [e64b07eaede82299330744e629d5651404ab7575] | committer: Rémi Denis-Courmont

OpenGL: enable SPU blending

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e64b07eaede82299330744e629d5651404ab7575
---

 modules/video_output/gl.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index a7acdd3..a396bae 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -138,13 +138,15 @@ static int Open (vlc_object_t *obj)
         goto error;
 
     /* Initialize video display */
-    sys->vgl = vout_display_opengl_New (&vd->fmt, NULL, sys->gl);
+    const vlc_fourcc_t *spu_chromas;
+    sys->vgl = vout_display_opengl_New (&vd->fmt, &spu_chromas, sys->gl);
     if (!sys->vgl)
         goto error;
 
     vd->sys = sys;
     vd->info.has_pictures_invalid = false;
     vd->info.has_event_thread = false;
+    vd->info.subpicture_chromas = spu_chromas;
     vd->pool = Pool;
     vd->prepare = PictureRender;
     vd->display = PictureDisplay;



More information about the vlc-commits mailing list