Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138068
b: refs/heads/master
c: e276f7b
h: refs/heads/master
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 86b07ea commit a974095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 5a771cb186dfa1f663ea15cdff3e32e04a8427e3
refs/heads/master: e276f7b5f9c41536f22bec1d8205e6b201300743
9 changes: 4 additions & 5 deletions trunk/drivers/media/video/zoran/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,11 +1377,10 @@ setup_overlay (struct file *file,

/* get the status of a buffer in the clients buffer queue */
static int
zoran_v4l2_buffer_status (struct file *file,
zoran_v4l2_buffer_status (struct zoran_fh *fh,
struct v4l2_buffer *buf,
int num)
{
struct zoran_fh *fh = file->private_data;
struct zoran *zr = fh->zr;

buf->flags = V4L2_BUF_FLAG_MAPPED;
Expand Down Expand Up @@ -2501,7 +2500,7 @@ static int zoran_querybuf(struct file *file, void *__fh, struct v4l2_buffer *buf
int res;

mutex_lock(&zr->resource_lock);
res = zoran_v4l2_buffer_status(file, buf, buf->index);
res = zoran_v4l2_buffer_status(fh, buf, buf->index);
mutex_unlock(&zr->resource_lock);

return res;
Expand Down Expand Up @@ -2602,7 +2601,7 @@ static int zoran_dqbuf(struct file *file, void *__fh, struct v4l2_buffer *buf)
if (res)
goto dqbuf_unlock_and_return;
zr->v4l_sync_tail++;
res = zoran_v4l2_buffer_status(file, buf, num);
res = zoran_v4l2_buffer_status(fh, buf, num);
break;

case ZORAN_MAP_MODE_JPG_REC:
Expand Down Expand Up @@ -2633,7 +2632,7 @@ static int zoran_dqbuf(struct file *file, void *__fh, struct v4l2_buffer *buf)
res = jpg_sync(file, &bs);
if (res)
goto dqbuf_unlock_and_return;
res = zoran_v4l2_buffer_status(file, buf, bs.frame);
res = zoran_v4l2_buffer_status(fh, buf, bs.frame);
break;
}

Expand Down

0 comments on commit a974095

Please sign in to comment.