Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65939
b: refs/heads/master
c: 00f98d0
h: refs/heads/master
i:
  65937: 792cf62
  65935: 1ec8451
v: v3
  • Loading branch information
Brandon Philips authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent b852a1d commit 4497976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ba32bd95d431525ad2ffac97cadf9ee40b63939e
refs/heads/master: 00f98d0804c88c29bef81cb98c861f13c9b33f30
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,18 @@ int videobuf_reqbufs(struct videobuf_queue *q,
return -EINVAL;
}

mutex_lock(&q->lock);
if (q->streaming) {
dprintk(1,"reqbufs: streaming already exists\n");
return -EBUSY;
retval = -EBUSY;
goto done;
}
if (!list_empty(&q->stream)) {
dprintk(1,"reqbufs: stream running\n");
return -EBUSY;
retval = -EBUSY;
goto done;
}

mutex_lock(&q->lock);
count = req->count;
if (count > VIDEO_MAX_FRAME)
count = VIDEO_MAX_FRAME;
Expand Down

0 comments on commit 4497976

Please sign in to comment.