Skip to content

Commit

Permalink
BCM2835-V4L2: Return buffers to videobuf2 on shutdown
Browse files Browse the repository at this point in the history
#817
Fixes the kernel warning from videobuf2 as buffers
are now returned as they are being flushed on
stop_streaming.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Jul 15, 2015
1 parent d901846 commit f1e870c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/platform/bcm2835/bcm2835-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,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);
}
}
Expand Down

0 comments on commit f1e870c

Please sign in to comment.