diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-19 19:17:25 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-12-19 19:17:25 +0100 |
commit | 21d405e38a20de8a1d21656ffb140a84ffad72be (patch) | |
tree | 3947f84a09f89adf236f545af909c50348602544 /linux/drivers/media/video/gspca/gspca.c | |
parent | 6880329c518c82eee1f0cbae9d1710285b8a1b3e (diff) | |
download | mediapointer-dvb-s2-21d405e38a20de8a1d21656ffb140a84ffad72be.tar.gz mediapointer-dvb-s2-21d405e38a20de8a1d21656ffb140a84ffad72be.tar.bz2 |
gspca - main: Check if a buffer has been queued on streamon.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/gspca.c')
-rw-r--r-- | linux/drivers/media/video/gspca/gspca.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c index 920e01c0d..5d2f0ab93 100644 --- a/linux/drivers/media/video/gspca/gspca.c +++ b/linux/drivers/media/video/gspca/gspca.c @@ -1236,7 +1236,8 @@ static int vidioc_streamon(struct file *file, void *priv, ret = -ENODEV; goto out; } - if (gspca_dev->nframes == 0) { + if (gspca_dev->nframes == 0 + || !(gspca_dev->frame[0].v4l2_buf.flags & V4L2_BUF_FLAG_QUEUED)) { ret = -EINVAL; goto out; } |