Skip to content

Commit

Permalink
staging: bcm2835-camera: Disable camera on error
Browse files Browse the repository at this point in the history
If the encode tunnel failed to enable, then the camera was left
enabled and that caused a failure on a subsequent request to
change format.

Disable the camera on failure.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Dec 13, 2021
1 parent e59e2a6 commit 53fd070
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
vchiq_mmal_port_return_buffers(dev->instance,
dev->capture.port,
flush_cb);
return -1;
disable_camera(dev);
return -EINVAL;
}
}

Expand Down

0 comments on commit 53fd070

Please sign in to comment.