BCM2835-V4L2: Return buffers to videobuf2 on shutdown

https://github.com/raspberrypi/linux/issues/817
Fixes the kernel warning from videobuf2 as buffers
are now returned as they are being flushed on
stop_streaming.
This commit is contained in:
Dave Stevenson
2015-07-14 22:57:57 +01:00
committed by popcornmix
parent fe07a10d55
commit e6d2c7de9b

View File

@@ -404,6 +404,7 @@ static void buffer_cb(struct vchiq_mmal_instance *instance,
}
} else {
/* signal frame completion */
vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR);
complete(&dev->capture.frame_cmplt);
}
}