From 600942788dcfa80d0e44b6dc0b3d72cec2b86a66 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 29 Jun 2015 16:05:44 +0100 Subject: [PATCH] v4l2: document fallthrough cases Pacify coverity and document fallthrough cases in switch statements. CID #1308948, #1308947, #1308946 --- sys/v4l2/gstv4l2object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index ce2882d0c8..d60a66540f 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -1771,16 +1771,19 @@ gst_v4l2_object_get_colorspace (enum v4l2_colorspace colorspace, case V4L2_YCBCR_ENC_XV601: case V4L2_YCBCR_ENC_SYCC: GST_FIXME ("XV601 and SYCC not defined, assuming 601"); + /* fallthrough */ case V4L2_YCBCR_ENC_601: cinfo->matrix = GST_VIDEO_COLOR_MATRIX_BT601; break; case V4L2_YCBCR_ENC_XV709: GST_FIXME ("XV709 not defined, assuming 709"); + /* fallthrough */ case V4L2_YCBCR_ENC_709: cinfo->matrix = GST_VIDEO_COLOR_MATRIX_BT709; break; case V4L2_YCBCR_ENC_BT2020_CONST_LUM: GST_FIXME ("BT2020 with constant lumma is not defined, assuming BT2020"); + /* fallthrough */ case V4L2_YCBCR_ENC_BT2020: cinfo->matrix = GST_VIDEO_COLOR_MATRIX_BT2020; break; @@ -2938,6 +2941,7 @@ gst_v4l2_object_set_format_full (GstV4l2Object * v4l2object, GstCaps * caps, case GST_VIDEO_TRANSFER_GAMMA28: GST_WARNING_OBJECT (v4l2object->element, "GAMMA 18, 20, 22, 28 transfer functions not supported"); + /* fallthrough */ case GST_VIDEO_TRANSFER_GAMMA10: transfer = V4L2_XFER_FUNC_NONE; break; -- 2.34.1