mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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) {
|
while (true) {
|
||||||
const char *name;
|
const char *name;
|
||||||
float value, *val = NULL;
|
float value, *val = NULL;
|
||||||
|
double dbl_val;
|
||||||
bool bool_val;
|
bool bool_val;
|
||||||
int32_t int_val;
|
int32_t int_val;
|
||||||
|
|
||||||
|
|
@ -808,6 +809,9 @@ static int parse_params(struct graph *graph, const struct spa_pod *pod)
|
||||||
break;
|
break;
|
||||||
if (spa_pod_parser_get_float(&prs, &value) >= 0) {
|
if (spa_pod_parser_get_float(&prs, &value) >= 0) {
|
||||||
val = &value;
|
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) {
|
} else if (spa_pod_parser_get_int(&prs, &int_val) >= 0) {
|
||||||
value = int_val;
|
value = int_val;
|
||||||
val = &value;
|
val = &value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue