[media] pvrusb2: initialize standards mask before detecting standard
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 4 Oct 2011 17:16:14 +0000 (14:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Oct 2011 11:00:54 +0000 (08:00 -0300)
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c

index 0d029da07e6b9b516660a21ba1970163f06f5f17..ce7ac4595276b8a86da9e8a4641f5b1207e31bc6 100644 (file)
@@ -230,6 +230,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg)
        case VIDIOC_QUERYSTD:
        {
                v4l2_std_id *std = arg;
+               *std = V4L2_STD_ALL;
                ret = pvr2_hdw_get_detected_std(hdw, std);
                break;
        }