Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193029
b: refs/heads/master
c: 832d0a9
h: refs/heads/master
i:
  193027: 574f111
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent d03790b commit 6da35b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18bf99aa0cb80b4fa3974a511fd033c2967b04c8
refs/heads/master: 832d0a9130c18b9ee4b671c46763b972eb2a2568
7 changes: 5 additions & 2 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ static int vidioc_reqbufs(struct file *file, void *priv,
struct v4l2_requestbuffers *rb)
{
struct gspca_dev *gspca_dev = priv;
int i, ret = 0;
int i, ret = 0, streaming;

switch (rb->memory) {
case GSPCA_MEMORY_READ: /* (internal call) */
Expand Down Expand Up @@ -1538,7 +1538,8 @@ static int vidioc_reqbufs(struct file *file, void *priv,
}

/* stop streaming */
if (gspca_dev->streaming) {
streaming = gspca_dev->streaming;
if (streaming) {
mutex_lock(&gspca_dev->usb_lock);
gspca_dev->usb_err = 0;
gspca_stream_off(gspca_dev);
Expand All @@ -1557,6 +1558,8 @@ static int vidioc_reqbufs(struct file *file, void *priv,
if (ret == 0) {
rb->count = gspca_dev->nframes;
gspca_dev->capt_file = file;
if (streaming)
ret = gspca_init_transfer(gspca_dev);
}
out:
mutex_unlock(&gspca_dev->queue_lock);
Expand Down

0 comments on commit 6da35b4

Please sign in to comment.