mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-graph: Accept params of type Long
Integer numbers in lua are sent over protocol-native as Longs so make sure to handle them.
This commit is contained in:
parent
2aa725e4fe
commit
16ce5a2ccf
1 changed files with 4 additions and 0 deletions
|
|
@ -618,6 +618,7 @@ static int parse_params(struct graph *graph, const struct spa_pod *pod)
|
|||
double dbl_val;
|
||||
bool bool_val;
|
||||
int32_t int_val;
|
||||
int64_t long_val;
|
||||
|
||||
if (spa_pod_parser_get_string(&prs, &name) < 0)
|
||||
break;
|
||||
|
|
@ -629,6 +630,9 @@ static int parse_params(struct graph *graph, const struct spa_pod *pod)
|
|||
} else if (spa_pod_parser_get_int(&prs, &int_val) >= 0) {
|
||||
value = int_val;
|
||||
val = &value;
|
||||
} else if (spa_pod_parser_get_long(&prs, &long_val) >= 0) {
|
||||
value = long_val;
|
||||
val = &value;
|
||||
} else if (spa_pod_parser_get_bool(&prs, &bool_val) >= 0) {
|
||||
value = bool_val ? 1.0f : 0.0f;
|
||||
val = &value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue