Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261460
b: refs/heads/master
c: 1de5be5
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 39bebb8 commit 32271b3
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ee490b466162925193c847b02aabd6048ff8cbe9
refs/heads/master: 1de5be5e91ee10d8f42be2aebc1cede718b48d50
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,13 @@ static void vivi_thread_tick(struct vivi_dev *dev)
spin_lock_irqsave(&dev->slock, flags);
if (list_empty(&dma_q->active)) {
dprintk(dev, 1, "No active queue to serve\n");
goto unlock;
spin_unlock_irqrestore(&dev->slock, flags);
return;
}

buf = list_entry(dma_q->active.next, struct vivi_buffer, list);
list_del(&buf->list);
spin_unlock_irqrestore(&dev->slock, flags);

do_gettimeofday(&buf->vb.v4l2_buf.timestamp);

Expand All @@ -543,8 +545,6 @@ static void vivi_thread_tick(struct vivi_dev *dev)

vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE);
dprintk(dev, 2, "[%p/%d] done\n", buf, buf->vb.v4l2_buf.index);
unlock:
spin_unlock_irqrestore(&dev->slock, flags);
}

#define frames_to_ms(frames) \
Expand Down

0 comments on commit 32271b3

Please sign in to comment.