From 45db2931c82624fbcaad63d7e52e371570889767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wang=20Xin-yu=20=28=E7=8E=8B=E6=98=95=E5=AE=87=29?= Date: Thu, 27 Nov 2014 10:48:43 +0800 Subject: [PATCH] glcolorconvert: support RGB16/BGR16 video format download https://bugzilla.gnome.org/show_bug.cgi?id=740801 --- gst-libs/gst/gl/gstglcolorconvert.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index 7c88c64..290949d 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -656,6 +656,12 @@ _RGB_pixel_order (const gchar * expected, const gchar * wanted) g_free (temp); } + if (strcmp (want, "rgb16") == 0 || strcmp (want, "bgr16") == 0) { + gchar *temp = want; + want = g_strndup (temp, 3); + g_free (temp); + } + /* pad want with 'a's */ if ((len = strlen (want)) < 4) { gchar *new_want = g_strndup (want, 4); -- 2.7.4