diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2014-12-06 05:30:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-16 20:21:39 -0500 |
commit | bb9ff078860f9d2f79d3a6bea3af9f48354ddb75 (patch) | |
tree | 8ec280a88f900b397a12d66917af32bfbb34646b | |
parent | 5fdb9679b94ed74f5e9376bc289d840bd4f73f16 (diff) |
[media] vivid: fix CROP_BOUNDS typo for video output
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 <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v3.18
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/platform/vivid/vivid-vid-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vivid/vivid-vid-out.c b/drivers/media/platform/vivid/vivid-vid-out.c index ee5c3992b276..39ff79f6aa67 100644 --- a/drivers/media/platform/vivid/vivid-vid-out.c +++ b/drivers/media/platform/vivid/vivid-vid-out.c | |||
@@ -625,7 +625,7 @@ int vivid_vid_out_g_selection(struct file *file, void *priv, | |||
625 | sel->r = dev->fmt_out_rect; | 625 | sel->r = dev->fmt_out_rect; |
626 | break; | 626 | break; |
627 | case V4L2_SEL_TGT_CROP_BOUNDS: | 627 | case V4L2_SEL_TGT_CROP_BOUNDS: |
628 | if (!dev->has_compose_out) | 628 | if (!dev->has_crop_out) |
629 | return -EINVAL; | 629 | return -EINVAL; |
630 | sel->r = vivid_max_rect; | 630 | sel->r = vivid_max_rect; |
631 | break; | 631 | break; |