mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
module-filter-chain: add support for double params
This commit is contained in:
parent
ad178b8b5c
commit
932bbe4de6
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue