module-filter-chain: add support for double params

This commit is contained in:
Wim Taymans 2022-04-22 11:04:09 +02:00
parent ad178b8b5c
commit 932bbe4de6

View file

@ -801,6 +801,7 @@ static int parse_params(struct graph *graph, const struct spa_pod *pod)
while (true) {
const char *name;
float value, *val = NULL;
double dbl_val;
bool bool_val;
int32_t int_val;
@ -808,6 +809,9 @@ static int parse_params(struct graph *graph, const struct spa_pod *pod)
break;
if (spa_pod_parser_get_float(&prs, &value) >= 0) {
val = &value;
} else if (spa_pod_parser_get_double(&prs, &dbl_val) >= 0) {
value = dbl_val;
val = &value;
} else if (spa_pod_parser_get_int(&prs, &int_val) >= 0) {
value = int_val;
val = &value;