Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92504
b: refs/heads/master
c: 7daa4a8
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 320e91f commit fb47f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: b2cb200f0d0d5e801b47635554519f6e1b64e847
refs/heads/master: 7daa4a8897e79911f524ddac065adea05c7e9b16
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/ivtv/ivtv-queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void ivtv_queue_init(struct ivtv_queue *q)

void ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q)
{
unsigned long flags = 0;
unsigned long flags;

/* clear the buffer if it is going to be enqueued to the free queue */
if (q == &s->q_free) {
Expand All @@ -71,7 +71,7 @@ void ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_qu
struct ivtv_buffer *ivtv_dequeue(struct ivtv_stream *s, struct ivtv_queue *q)
{
struct ivtv_buffer *buf = NULL;
unsigned long flags = 0;
unsigned long flags;

spin_lock_irqsave(&s->qlock, flags);
if (!list_empty(&q->list)) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,14 +742,13 @@ ssize_t videobuf_read_one(struct videobuf_queue *q,
{
enum v4l2_field field;
unsigned long flags = 0;
unsigned size, nbufs;
unsigned size = 0, nbufs = 1;
int retval;

MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS);

mutex_lock(&q->vb_lock);

nbufs = 1; size = 0;
q->ops->buf_setup(q, &nbufs, &size);

if (NULL == q->read_buf &&
Expand Down

0 comments on commit fb47f88

Please sign in to comment.