Message ID | 6EE9CD707FBED24483D4CB0162E8546745F43748@AMSPRD0711MB532.eurprd07.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/videoout.c b/videoout.c index 51bed8b..627363a 100644 --- a/videoout.c +++ b/videoout.c @@ -76,6 +76,14 @@ struct videoout *vo_init(const char *devname, goto error; } + /* setup the rotation here, we have to do it BEFORE + * setting the format. */ + ret = v4l2_set_control(vo->dev, V4L2_CID_ROTATE, &rotation); + if (ret < 0){ + perror("Failed to setup rotation\n"); + goto error; + } + pixfmt.pixelformat = format->pixelformat; pixfmt.width = format->width; pixfmt.height = format->height;