diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-09-13 12:26:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 11:30:36 -0400 |
commit | d7fbefe06d2061de126095f903359ce1ef61faf3 (patch) | |
tree | 42da9dcd05563bc73624d16ca670cdca7fc03590 /drivers/media/video | |
parent | 183d896a03e1f0e4ab69d75f123d33a62b47cf03 (diff) |
V4L/DVB (4627): Vivi crashes with mplayer
The vivi.current_norm field is not initialized in vivi.c, so a
VIDIOC_G_STD ioctl without a prior call to VIDIOC_S_STD gives
unpredictable results. mplayer does exactly this.
Signed-off-by Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/vivi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 06b44e1dda1d..e7c01d560b64 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -1360,6 +1360,8 @@ static int __init vivi_init(void) | |||
1360 | dev->vidq.timeout.data = (unsigned long)dev; | 1360 | dev->vidq.timeout.data = (unsigned long)dev; |
1361 | init_timer(&dev->vidq.timeout); | 1361 | init_timer(&dev->vidq.timeout); |
1362 | 1362 | ||
1363 | vivi.current_norm = tvnorms[0].id; | ||
1364 | |||
1363 | ret = video_register_device(&vivi, VFL_TYPE_GRABBER, video_nr); | 1365 | ret = video_register_device(&vivi, VFL_TYPE_GRABBER, video_nr); |
1364 | printk(KERN_INFO "Video Technology Magazine Virtual Video Capture Board (Load status: %d)\n", ret); | 1366 | printk(KERN_INFO "Video Technology Magazine Virtual Video Capture Board (Load status: %d)\n", ret); |
1365 | return ret; | 1367 | return ret; |