]> err.no Git - linux-2.6/blobdiff - drivers/media/video/cx18/cx18-streams.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
[linux-2.6] / drivers / media / video / cx18 / cx18-streams.c
index f3d20509a8bd0fd0f975fce2662f7d0e620277a8..1728b1d832a9ca2eef5f147553da2e1d97a9e4f3 100644 (file)
@@ -311,8 +311,10 @@ void cx18_streams_cleanup(struct cx18 *cx, int unregister)
 
        /* Teardown all streams */
        for (type = 0; type < CX18_MAX_STREAMS; type++) {
-               if (cx->streams[type].dvb.enabled)
+               if (cx->streams[type].dvb.enabled) {
                        cx18_dvb_unregister(&cx->streams[type]);
+                       cx->streams[type].dvb.enabled = false;
+               }
 
                vdev = cx->streams[type].v4l2dev;