[vlc-commits] opengl: chroma description cannot be NULL, assert it

Rémi Denis-Courmont git at videolan.org
Mon Nov 17 16:46:22 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 17 17:46:09 2014 +0200| [a48446e71624e54b742586320fcd965e76e2dd48] | committer: Rémi Denis-Courmont

opengl: chroma description cannot be NULL, assert it

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

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

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index de4a936..7351bc2 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -592,7 +592,8 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
         vgl->tex_type     = GL_UNSIGNED_SHORT;
     }
     vgl->chroma = vlc_fourcc_GetChromaDescription(vgl->fmt.i_chroma);
-    vgl->use_multitexture = vgl->chroma && vgl->chroma->plane_count > 1;
+    assert(vgl->chroma != NULL);
+    vgl->use_multitexture = vgl->chroma->plane_count > 1;
 
     /* Texture size */
     for (unsigned j = 0; j < vgl->chroma->plane_count; j++) {



More information about the vlc-commits mailing list