Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74814
b: refs/heads/master
c: 820eacd
h: refs/heads/master
v: v3
  • Loading branch information
Brandon Philips authored and Mauro Carvalho Chehab committed Dec 11, 2007
1 parent 76e04a8 commit d1389dd
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 053fcb6014eef31c2674d344c704118e0ac229ef
refs/heads/master: 820eacd84cff23b76693f4be1e28feb672f4488f
6 changes: 1 addition & 5 deletions trunk/drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,21 +1205,17 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int
DEB_D(("VIDIOCGMBUF \n"));

q = &fh->video_q;
mutex_lock(&q->lock);
err = videobuf_mmap_setup(q,gbuffers,gbufsize,
V4L2_MEMORY_MMAP);
if (err < 0) {
mutex_unlock(&q->lock);
if (err < 0)
return err;
}

gbuffers = err;
memset(mbuf,0,sizeof(*mbuf));
mbuf->frames = gbuffers;
mbuf->size = gbuffers * gbufsize;
for (i = 0; i < gbuffers; i++)
mbuf->offsets[i] = i * gbufsize;
mutex_unlock(&q->lock);
return 0;
}
#endif
Expand Down

0 comments on commit d1389dd

Please sign in to comment.