From c9afdbe77a95a51cc16765495700227b3870e4cf Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 7 Jun 2006 09:46:21 -0300 Subject: Fix: Wrong callback check for streamoff. From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/videodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index b3285d753..60407ba08 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -805,7 +805,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, { enum v4l2_buf_type i = *(int *)arg; - if (!vfd->vidioc_streamon) + if (!vfd->vidioc_streamoff) break; dbgarg (cmd, "type=%s\n", prt_names(i,v4l2_type_names_FIXME)); ret=vfd->vidioc_streamoff(file, fh, i); -- cgit v1.2.3