String parameters are expected to be passed as (f0r_param_string *),
which actually map to char**. In the filters this is evaluated as
(*(char**)param) which currently lead to crash when passing char*.
Remove the special case for string, all types, including char* as
passed as a reference.
https://phabricator.freedesktop.org/T83
f0r_instance_t *instance = ftable->construct (width, height);
gint i;
- for (i = 0; i < n_properties; i++) {
- if (properties[i].info.type == F0R_PARAM_STRING)
- ftable->set_param_value (instance, property_cache[i].data.s, i);
- else
- ftable->set_param_value (instance, &property_cache[i].data, i);
- }
+ for (i = 0; i < n_properties; i++)
+ ftable->set_param_value (instance, &property_cache[i].data, i);
return instance;
}