]> err.no Git - linux-2.6/blobdiff - drivers/media/video/cx88/cx88-blackbird.c
V4L/DVB (6602): V4L: Convert videobuf drivers to videobuf_stop
[linux-2.6] / drivers / media / video / cx88 / cx88-blackbird.c
index f33f0b47142cd319b75942ab4d19ec269cb85922..f802b5653569874fa0a6dbef531c964566c784c8 100644 (file)
@@ -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;