Factorize common code in v4l2_set_parameters().