From bbec8c46962ff58cd76508f46ce105839f944068 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 27 Jun 2003 10:43:18 +0000 Subject: Don't complain when an app tries to turn *off* overlay, but there are no overlay informations. --- linux/drivers/media/common/saa7146_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/common') diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c index a4049526c..77c20b528 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/common/saa7146_video.c @@ -1001,7 +1001,7 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int int on = *(int *)arg; int err = 0; - if( NULL == vv->ov_fmt ) { + if( NULL == vv->ov_fmt && on != 0 ) { DEB_D(("VIDIOC_OVERLAY: no framebuffer informations. call S_FBUF first!\n")); return -EAGAIN; } -- cgit v1.2.3