diff options
author | Brandon Philips <brandon@ifup.org> | 2007-11-14 00:11:26 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-11 21:08:09 +0100 |
commit | 053fcb6014eef31c2674d344c704118e0ac229ef (patch) | |
tree | 8d0ea0b5b7d60081f16756d7c92a8df4c0e0c531 /drivers/media/video/cx88/cx88-blackbird.c | |
parent | V4L/DVB (6601): V4L: videobuf-core locking fixes and comments (diff) | |
download | linux-053fcb6014eef31c2674d344c704118e0ac229ef.tar.xz linux-053fcb6014eef31c2674d344c704118e0ac229ef.zip |
V4L/DVB (6602): V4L: Convert videobuf drivers to videobuf_stop
Drivers were using cookie cutter code for stopping the read/stream. Use the
new videobuf_stop function which is lock safe.
Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index f33f0b47142c..f802b5653569 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c @@ -1085,10 +1085,7 @@ static int mpeg_release(struct inode *inode, struct file *file) cx8802_cancel_buffers(fh->dev); /* stop mpeg capture */ - if (fh->mpegq.streaming) - videobuf_streamoff(&fh->mpegq); - if (fh->mpegq.reading) - videobuf_read_stop(&fh->mpegq); + videobuf_stop(&fh->mpegq); videobuf_mmap_free(&fh->mpegq); file->private_data = NULL; |