mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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:
committed by
popcornmix
parent
fe07a10d55
commit
e6d2c7de9b
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user