summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-27 18:25:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-27 18:25:44 -0300
commit89f22d9227d65dad3df4ad8fcf333a288016cdc8 (patch)
treebb73b6b7843e1b31be3bf721e4a0d8ccef0b0a25 /linux/drivers/media/video/videobuf-core.c
parentc594848c181742c41a59366a72b70cea997446fd (diff)
downloadmediapointer-dvb-s2-89f22d9227d65dad3df4ad8fcf333a288016cdc8.tar.gz
mediapointer-dvb-s2-89f22d9227d65dad3df4ad8fcf333a288016cdc8.tar.bz2
videobuf cleanup: mmap check is common to all videobuf. Make it at core
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981 Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'linux/drivers/media/video/videobuf-core.c')
-rw-r--r--linux/drivers/media/video/videobuf-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/videobuf-core.c b/linux/drivers/media/video/videobuf-core.c
index a446067fd..3c402060d 100644
--- a/linux/drivers/media/video/videobuf-core.c
+++ b/linux/drivers/media/video/videobuf-core.c
@@ -150,7 +150,7 @@ int videobuf_queue_is_busy(struct videobuf_queue *q)
for (i = 0; i < VIDEO_MAX_FRAME; i++) {
if (NULL == q->bufs[i])
continue;
- if (CALL(q,is_mmapped,q->bufs[i])) {
+ if (q->bufs[i]->map) {
dprintk(1,"busy: buffer #%d mapped\n",i);
return 1;
}
@@ -239,7 +239,7 @@ static void videobuf_status(struct videobuf_queue *q, struct v4l2_buffer *b,
}
b->flags = 0;
- if (CALL(q,is_mmapped,vb))
+ if (vb->map)
b->flags |= V4L2_BUF_FLAG_MAPPED;
switch (vb->state) {