glcolorconvert: support RGB16/BGR16 video format download

https://bugzilla.gnome.org/show_bug.cgi?id=740801
This commit is contained in:
Wang Xin-yu (王昕宇) 2014-11-27 10:48:43 +08:00 committed by Sebastian Dröge
parent a7ce611970
commit 15c0d5c21b

View file

@ -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);