From: Dave Stevenson <6by9@users.noreply.github.com> Date: Thu, 10 Nov 2016 22:36:52 +0000 (+0000) Subject: Raspistill: Only fail setting restart int if not 0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0002a10adef8b9017e3b492d23b0203f7f5164e;p=platform%2Fadaptation%2Fbroadcom%2Flibomxil-vc4.git Raspistill: Only fail setting restart int if not 0 Older firmwares don't support setting the JPEG restart interval, but RaspiStill will abort if it fails. Only abort if the restart interval is non-zero (ie other than the default) and it fails. --- diff --git a/host_applications/linux/apps/raspicam/RaspiStill.c b/host_applications/linux/apps/raspicam/RaspiStill.c index b4c483d..c7d3f79 100644 --- a/host_applications/linux/apps/raspicam/RaspiStill.c +++ b/host_applications/linux/apps/raspicam/RaspiStill.c @@ -1277,7 +1277,7 @@ static MMAL_STATUS_T create_encoder_component(RASPISTILL_STATE *state) // Set the JPEG restart interval status = mmal_port_parameter_set_uint32(encoder_output, MMAL_PARAMETER_JPEG_RESTART_INTERVAL, state->restart_interval); - if (status != MMAL_SUCCESS) + if (state->restart_interval && status != MMAL_SUCCESS) { vcos_log_error("Unable to set JPEG restart interval"); goto error;