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.
  • Loading branch information
6by9 authored and popcornmix committed Nov 13, 2015
1 parent 90d8a83 commit 05c8cab
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 @@ -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);
}
}
Expand Down

0 comments on commit 05c8cab

Please sign in to comment.