diff options
author | Matthew Waters <matthew@centricular.com> | 2016-08-04 23:14:41 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-08-04 23:16:14 +1000 |
commit | 402ab38f07096a581a74bd340ea56dedc9bd13e9 (patch) | |
tree | 4260dcf9c81a89267e6c0b59634f5f5b86fd8672 | |
parent | f2dc791479f42e0c2f0f4ff93ec0d25b78950bca (diff) |
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
-rw-r--r-- | gst-libs/gst/gl/gstglcolorconvert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index 5c8eba7b7..e9eb88a2e 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: |