From ce4ba0626e4b2a4c84bf30a1dbf8a399ee0ff252 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Wed, 23 May 2012 01:31:00 +0300 Subject: Replace V4L2 subdev selection targets with the V4L2 ones V4L2 selection targets will replace V4L2 subdev selection targets in the near future. As the targets are guaranteed to be the same and the chance is anticipated very soon, replace the subdev targets with more future-proof V4L2 targets. Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index dad5a9d..13a458d 100644 --- a/src/main.c +++ b/src/main.c @@ -64,28 +64,28 @@ static void v4l2_subdev_print_format(struct media_entity *entity, format.width, format.height); ret = v4l2_subdev_get_selection(entity, &rect, pad, - V4L2_SUBDEV_SEL_TGT_CROP_BOUNDS, + V4L2_SEL_TGT_CROP_BOUNDS, which); if (ret == 0) printf("\n\t\t crop.bounds:(%u,%u)/%ux%u", rect.left, rect.top, rect.width, rect.height); ret = v4l2_subdev_get_selection(entity, &rect, pad, - V4L2_SUBDEV_SEL_TGT_CROP, + V4L2_SEL_TGT_CROP, which); if (ret == 0) printf("\n\t\t crop:(%u,%u)/%ux%u", rect.left, rect.top, rect.width, rect.height); ret = v4l2_subdev_get_selection(entity, &rect, pad, - V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS, + V4L2_SEL_TGT_COMPOSE_BOUNDS, which); if (ret == 0) printf("\n\t\t compose.bounds:(%u,%u)/%ux%u", rect.left, rect.top, rect.width, rect.height); ret = v4l2_subdev_get_selection(entity, &rect, pad, - V4L2_SUBDEV_SEL_TGT_COMPOSE, + V4L2_SEL_TGT_COMPOSE, which); if (ret == 0) printf("\n\t\t compose:(%u,%u)/%ux%u", -- cgit v1.2.3