From b173198d3bce14fc0d001ff6d8f1337c6c84f17c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 21 Mar 2022 09:11:36 +0100 Subject: [PATCH] audioconvert: remove useless parsing We don't have float params. --- spa/plugins/audioconvert/resample.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/spa/plugins/audioconvert/resample.c b/spa/plugins/audioconvert/resample.c index a28fa7893..9bfc7cce5 100644 --- a/spa/plugins/audioconvert/resample.c +++ b/spa/plugins/audioconvert/resample.c @@ -307,9 +307,6 @@ static int parse_prop_params(struct impl *this, struct spa_pod *params) if (spa_pod_is_string(pod)) { 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)) { snprintf(value, sizeof(value), "%d", SPA_POD_VALUE(struct spa_pod_int, pod));