diff options
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 8e822ed4435f..2dc7270722f3 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -466,8 +466,9 @@ void gspca_frame_add(struct gspca_dev *gspca_dev, | |||
466 | j = gspca_dev->fr_queue[i]; | 466 | j = gspca_dev->fr_queue[i]; |
467 | frame = &gspca_dev->frame[j]; | 467 | frame = &gspca_dev->frame[j]; |
468 | frame->v4l2_buf.bytesused = gspca_dev->image_len; | 468 | frame->v4l2_buf.bytesused = gspca_dev->image_len; |
469 | frame->v4l2_buf.flags &= ~V4L2_BUF_FLAG_QUEUED; | 469 | frame->v4l2_buf.flags = (frame->v4l2_buf.flags |
470 | frame->v4l2_buf.flags |= V4L2_BUF_FLAG_DONE; | 470 | | V4L2_BUF_FLAG_DONE) |
471 | & ~V4L2_BUF_FLAG_QUEUED; | ||
471 | wake_up_interruptible(&gspca_dev->wq); /* event = new frame */ | 472 | wake_up_interruptible(&gspca_dev->wq); /* event = new frame */ |
472 | i = (i + 1) % gspca_dev->nframes; | 473 | i = (i + 1) % gspca_dev->nframes; |
473 | gspca_dev->fr_i = i; | 474 | gspca_dev->fr_i = i; |