Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76545
b: refs/heads/master
c: 025341d
h: refs/heads/master
i:
  76543: b89e3e9
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 8604bef commit 5a1d7c0
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 55712ff7e06b721fbeebd36499bad4a11b7d8327
refs/heads/master: 025341d4f0caa58f0e5eddbffd11d44e37cff974
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ struct vivi_dev {
/* Several counters */
int h,m,s,us,jiffies;
char timestr[13];

int mv_count; /* Controls bars movement */
};

struct vivi_fh {
Expand Down Expand Up @@ -327,22 +329,20 @@ static void vivi_fillbuff(struct vivi_dev *dev,struct vivi_buffer *buf)
struct timeval ts;
char *tmpbuf = kmalloc(wmax*2,GFP_KERNEL);
void *vbuf=videobuf_to_vmalloc (&buf->vb);
/* FIXME: move to dev struct */
static int mv_count=0;

if (!tmpbuf)
return;

for (h=0;h<hmax;h++) {
gen_line(tmpbuf,0,wmax,hmax,h,mv_count,
gen_line(tmpbuf, 0, wmax, hmax, h, dev->mv_count,
dev->timestr);
/* FIXME: replacing to __copy_to_user */
if (copy_to_user(vbuf+pos,tmpbuf,wmax*2)!=0)
dprintk(2,"vivifill copy_to_user failed.\n");
pos += wmax*2;
}

mv_count++;
dev->mv_count++;

kfree(tmpbuf);

Expand Down

0 comments on commit 5a1d7c0

Please sign in to comment.