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.
// 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;