v4l2object: Use non-deprecated V4L2 type for RGB15
authorKieran Bingham <kieran@bingham.xyz>
Mon, 6 Jun 2016 17:52:01 +0000 (18:52 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:19:41 +0000 (17:19 -0400)
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

index 05258ca0d85a197e17f37215adec7f83282892fb..cf1282323f519e9093ffda26ace5d00f1e919068 100644 (file)
@@ -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;