Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106741
b: refs/heads/master
c: b185590
h: refs/heads/master
i:
  106739: 227c463
v: v3
  • Loading branch information
Jaime Velasco Juan authored and Mauro Carvalho Chehab committed Jul 26, 2008
1 parent 690f8aa commit 9bfa12b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 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: f78d92c9ffcda7451b5943ab491c087f1ec7e08d
refs/heads/master: b18559076a31ab0be2d980ce2beff8e32504e080
23 changes: 12 additions & 11 deletions trunk/drivers/media/video/stk-webcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,19 @@ static void stk_isoc_handler(struct urb *urb)
fb->v4lbuf.bytesused = 0;
fill = fb->buffer;
} else if (fb->v4lbuf.bytesused == dev->frame_size) {
list_move_tail(dev->sio_avail.next,
&dev->sio_full);
wake_up(&dev->wait_frame);
if (list_empty(&dev->sio_avail)) {
(void) (printk_ratelimit() &&
STK_ERROR("No buffer available\n"));
goto resubmit;
if (list_is_singular(&dev->sio_avail)) {
/* Always reuse the last buffer */
fb->v4lbuf.bytesused = 0;
fill = fb->buffer;
} else {
list_move_tail(dev->sio_avail.next,
&dev->sio_full);
wake_up(&dev->wait_frame);
fb = list_first_entry(&dev->sio_avail,
struct stk_sio_buffer, list);
fb->v4lbuf.bytesused = 0;
fill = fb->buffer;
}
fb = list_first_entry(&dev->sio_avail,
struct stk_sio_buffer, list);
fb->v4lbuf.bytesused = 0;
fill = fb->buffer;
}
} else {
framelen -= 4;
Expand Down

0 comments on commit 9bfa12b

Please sign in to comment.