diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-10-21 16:37:07 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-10-21 16:37:07 +0200 |
commit | 06013a66758e7c8e83dba4f81a92682c53a93d41 (patch) | |
tree | 0ca61c7c60d0ecb110907dd5fcb064eedf0be4f7 /main.c | |
parent | 33429a037a687d6a2786edfbf6d5093bfec0b987 (diff) |
Update to the latest media kernel API
The media kernel API has seen many changes during the review process,
update the media-ctl application accordingly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -390,7 +390,7 @@ static int setup_format(struct media_device *media, const char *p, char **endp) return -EINVAL; } - if (pad->type == MEDIA_PAD_TYPE_OUTPUT) { + if (pad->flags & MEDIA_PAD_FLAG_OUTPUT) { ret = set_crop(pad, &crop); if (ret < 0) return ret; @@ -400,7 +400,7 @@ static int setup_format(struct media_device *media, const char *p, char **endp) if (ret < 0) return ret; - if (pad->type == MEDIA_PAD_TYPE_INPUT) { + if (pad->flags & MEDIA_PAD_FLAG_INPUT) { ret = set_crop(pad, &crop); if (ret < 0) return ret; @@ -414,7 +414,7 @@ static int setup_format(struct media_device *media, const char *p, char **endp) /* If the pad is an output pad, automatically set the same format on * the remote subdev input pads, if any. */ - if (pad->type == MEDIA_PAD_TYPE_OUTPUT) { + if (pad->flags & MEDIA_PAD_FLAG_OUTPUT) { for (i = 0; i < pad->entity->info.links; ++i) { struct media_entity_link *link = &pad->entity->links[i]; struct v4l2_mbus_framefmt remote_format; |