]> Pileus Git - ~andy/linux/blobdiff - drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
[media] gspca - stv06xx: Fix a regression with the bridge/sensor vv6410
[~andy/linux] / drivers / media / usb / gspca / stv06xx / stv06xx_vv6410.c
index 748e1421d6d8c93bdb993c1aaf32d09d8297fca2..cbb153180d59062523b43f6cbc07d6fffa96dbd8 100644 (file)
@@ -52,9 +52,13 @@ static int vv6410_s_ctrl(struct v4l2_ctrl *ctrl)
 
        switch (ctrl->id) {
        case V4L2_CID_HFLIP:
+               if (!gspca_dev->streaming)
+                       return 0;
                err = vv6410_set_hflip(gspca_dev, ctrl->val);
                break;
        case V4L2_CID_VFLIP:
+               if (!gspca_dev->streaming)
+                       return 0;
                err = vv6410_set_vflip(gspca_dev, ctrl->val);
                break;
        case V4L2_CID_GAIN: