From 6b635559cd197d10e6291cd8ef15937ef59a5ba7 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 4 Aug 2016 23:14:41 +1000 Subject: [PATCH] glcolorconvert: add missing rgb16 and bgr16 video formats in switch Fixes an assertion that code should not be reached https://bugzilla.gnome.org/show_bug.cgi?id=769462 --- gst-libs/gst/gl/gstglcolorconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index 5c8eba7b7f..e9eb88a2e1 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -1358,6 +1358,8 @@ _get_n_textures (GstVideoFormat v_format) case GST_VIDEO_FORMAT_GRAY16_BE: case GST_VIDEO_FORMAT_YUY2: case GST_VIDEO_FORMAT_UYVY: + case GST_VIDEO_FORMAT_RGB16: + case GST_VIDEO_FORMAT_BGR16: return 1; case GST_VIDEO_FORMAT_NV12: case GST_VIDEO_FORMAT_NV21: