[media] vivid: fix CROP_BOUNDS typo for video output
authorHans Verkuil <[email protected]>
Sat, 6 Dec 2014 10:30:03 +0000 (07:30 -0300)
committerMauro Carvalho Chehab <[email protected]>
Wed, 17 Dec 2014 01:21:39 +0000 (23:21 -0200)
An error was returned if composing was not supported, instead of if
cropping was not supported.

A classic copy-and-paste bug. Found with v4l2-compliance.

Signed-off-by: Hans Verkuil <[email protected]>
Cc: <[email protected]> # for v3.18
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/vivid/vivid-vid-out.c

index ee5c3992b276b9e7e7b2ed5bd3144e4ba9f33346..39ff79f6aa67da8453cba76321364ca857f16509 100644 (file)
@@ -625,7 +625,7 @@ int vivid_vid_out_g_selection(struct file *file, void *priv,
                sel->r = dev->fmt_out_rect;
                break;
        case V4L2_SEL_TGT_CROP_BOUNDS:
-               if (!dev->has_compose_out)
+               if (!dev->has_crop_out)
                        return -EINVAL;
                sel->r = vivid_max_rect;
                break;