summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-10-21 16:37:07 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-10-21 16:37:07 +0200
commit06013a66758e7c8e83dba4f81a92682c53a93d41 (patch)
tree0ca61c7c60d0ecb110907dd5fcb064eedf0be4f7 /main.c
parent33429a037a687d6a2786edfbf6d5093bfec0b987 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 96b4573..9952a60 100644
--- a/main.c
+++ b/main.c
@@ -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;