From 5302700c6d8955eb28adde51aa3f76587b121aa5 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 23 Feb 2021 12:47:24 +0200 Subject: [PATCH] m-lua-scripting/pod: s/id_type/object_id/ as commented on !125 --- modules/module-lua-scripting/pod.c | 2 +- tests/wplua/scripts/pod.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/module-lua-scripting/pod.c b/modules/module-lua-scripting/pod.c index 128b2183..722973cc 100644 --- a/modules/module-lua-scripting/pod.c +++ b/modules/module-lua-scripting/pod.c @@ -1031,7 +1031,7 @@ push_luapod (lua_State *L, WpSpaPod *pod, WpSpaIdValue field_idval) lua_pushstring (L, "Object"); lua_setfield (L, -2, "pod_type"); lua_pushstring (L, id_name); - lua_setfield (L, -2, "id_type"); + lua_setfield (L, -2, "object_id"); it = wp_spa_pod_new_iterator (pod); lua_newtable (L); for (; wp_iterator_next (it, &item); g_value_unset (&item)) { diff --git a/tests/wplua/scripts/pod.lua b/tests/wplua/scripts/pod.lua index 7648e85c..9affc330 100644 --- a/tests/wplua/scripts/pod.lua +++ b/tests/wplua/scripts/pod.lua @@ -88,7 +88,7 @@ pod = Pod.Object { } val = pod:parse() assert (val.pod_type == "Object") -assert (val.id_type == "PortConfig") +assert (val.object_id == "PortConfig") assert (val.properties.direction == "Input") assert (val.properties.mode == "dsp") assert (val.properties.monitor) @@ -181,12 +181,12 @@ pod = Pod.Object { } val = pod:parse() assert (val.pod_type == "Object") -assert (val.id_type == "PortConfig") +assert (val.object_id == "PortConfig") assert (val.properties.direction == "Input") assert (val.properties.mode == "dsp") assert (val.properties.monitor) assert (val.properties.format.pod_type == "Object") -assert (val.properties.format.id_type == "Format") +assert (val.properties.format.object_id == "Format") assert (val.properties.format.properties.mediaType == "audio") assert (val.properties.format.properties.mediaSubtype == "raw") assert (val.properties.format.properties.rate == 48000)