audioconvert: remove useless parsing

We don't have float params.
This commit is contained in:
Wim Taymans 2022-03-21 09:11:36 +01:00
parent 93b5d440bc
commit b173198d3b

View file

@ -307,9 +307,6 @@ static int parse_prop_params(struct impl *this, struct spa_pod *params)
if (spa_pod_is_string(pod)) { if (spa_pod_is_string(pod)) {
spa_pod_copy_string(pod, sizeof(value), value); spa_pod_copy_string(pod, sizeof(value), value);
} else if (spa_pod_is_float(pod)) {
snprintf(value, sizeof(value), "%f",
SPA_POD_VALUE(struct spa_pod_float, pod));
} else if (spa_pod_is_int(pod)) { } else if (spa_pod_is_int(pod)) {
snprintf(value, sizeof(value), "%d", snprintf(value, sizeof(value), "%d",
SPA_POD_VALUE(struct spa_pod_int, pod)); SPA_POD_VALUE(struct spa_pod_int, pod));