V4L/DVB (3827): Cx88-blackbird: clean up the buffers when closing the MPEG stream
authorValentin Zagura <puthre@gmail.com>
Fri, 21 Apr 2006 01:56:25 +0000 (22:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 04:58:18 +0000 (01:58 -0300)
This patch cleans up the buffer queue when the MPEG stream is closed,
preventing the message, 'cx8802_timeout'

Signed-off-by: Valentin Zagura <puthre@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-blackbird.c

index be367c5..10556d3 100644 (file)
@@ -1569,6 +1569,7 @@ static int mpeg_release(struct inode *inode, struct file *file)
                        BLACKBIRD_RAW_BITS_NONE
                );
 
+       cx8802_cancel_buffers(fh->dev);
        /* stop mpeg capture */
        if (fh->mpegq.streaming)
                videobuf_streamoff(&fh->mpegq);