summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHaihua Hu <jared.hu@nxp.com>2017-05-17 16:26:38 +0800
committerSebastian Dröge <sebastian@centricular.com>2017-05-29 10:49:00 +0300
commitec889d3fbce5dc4f47d4c94ca4ae4b3df3964c41 (patch)
tree62e59e2257e4b00b7e710cd215b12b943e0e4196 /gst-libs
parentcfc4b46181c4e7ae549c369fc309641d33060f6d (diff)
downloadgstreamer-plugins-bad-ec889d3fbce5dc4f47d4c94ca4ae4b3df3964c41.tar.gz
glformat: Add missing GST_GL_RGB565 in some switch statement
https://bugzilla.gnome.org/show_bug.cgi?id=782736
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/gl/gstglformat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglformat.c b/gst-libs/gst/gl/gstglformat.c
index 36aecf2e3..e44968846 100644
--- a/gst-libs/gst/gl/gstglformat.c
+++ b/gst-libs/gst/gl/gstglformat.c
@@ -58,6 +58,7 @@ _gl_format_n_components (guint format)
case GST_VIDEO_GL_TEXTURE_TYPE_RGB:
case GST_VIDEO_GL_TEXTURE_TYPE_RGB16:
case GST_GL_RGB:
+ case GST_GL_RGB565:
return 3;
case GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA:
case GST_VIDEO_GL_TEXTURE_TYPE_RG:
@@ -257,6 +258,7 @@ gst_gl_sized_gl_format_from_gl_format_type (GstGLContext * context,
break;
case GST_GL_RGBA8:
case GST_GL_RGB8:
+ case GST_GL_RGB565:
case GST_GL_RG8:
case GST_GL_R8:
case GST_GL_LUMINANCE: