From b4e6a7156649d90b5fd26c4c642d3e4708586b81 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 6 Jun 2016 18:52:01 +0100 Subject: [PATCH] v4l2object: Use non-deprecated V4L2 type for RGB15 Support for the updated V4L2_PIX_FMT_XRGB555 was added in commit 2538fee2fd8fdb74b05f0a511281bc4707e7cc44 however, when setting the format for use in v4l2 ioctls, the old deprecated format is still used. Convert this to the new accepted format type, as the preferred format. https://bugzilla.gnome.org/show_bug.cgi?id=767300 --- sys/v4l2/gstv4l2object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 05258ca0d8..cf1282323f 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -1661,6 +1661,7 @@ gst_v4l2_object_get_caps_info (GstV4l2Object * v4l2object, GstCaps * caps, break; case GST_VIDEO_FORMAT_RGB15: fourcc = V4L2_PIX_FMT_RGB555; + fourcc_nc = V4L2_PIX_FMT_XRGB555; break; case GST_VIDEO_FORMAT_RGB16: fourcc = V4L2_PIX_FMT_RGB565;