mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 13:57:57 +02:00
lua/pod: don't crash on parsing objects with unknown keys, just ignore them
This commit is contained in:
parent
9f50117fa7
commit
5b4fe3cd85
1 changed files with 5 additions and 3 deletions
|
|
@ -1048,9 +1048,11 @@ push_luapod (lua_State *L, WpSpaPod *pod, WpSpaIdValue field_idval)
|
|||
//FIXME: this is suboptimal because _get_property() converts
|
||||
// the key to a short name and we convert it back
|
||||
wp_spa_pod_get_property (prop, &key, &val);
|
||||
push_luapod (L, val,
|
||||
wp_spa_id_table_find_value_from_short_name (values_table, key));
|
||||
lua_setfield (L, -2, key);
|
||||
if (key) {
|
||||
push_luapod (L, val,
|
||||
wp_spa_id_table_find_value_from_short_name (values_table, key));
|
||||
lua_setfield (L, -2, key);
|
||||
}
|
||||
}
|
||||
lua_setfield (L, -2, "properties");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue