summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sratom.c2
-rw-r--r--tests/sratom_test.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 09a7779..4280c9a 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -470,6 +470,8 @@ read_node(Sratom* sratom,
lv2_atom_forge_double(forge, serd_strtod(str, &endptr));
} else if (!strcmp(type_uri, (char*)NS_XSD "boolean")) {
lv2_atom_forge_bool(forge, !strcmp(str, "true"));
+ } else if (!strcmp(type_uri, (char*)NS_ATOM "Path")) {
+ lv2_atom_forge_path(forge, (const uint8_t*)str, len);
} else if (!strcmp(type_uri, (char*)NS_MIDI "MidiEvent")) {
lv2_atom_forge_atom(forge, len / 2, sratom->midi_MidiEvent);
for (const char* s = str; s < str + len; s += 2) {
diff --git a/tests/sratom_test.c b/tests/sratom_test.c
index dadcf4d..52fca7c 100644
--- a/tests/sratom_test.c
+++ b/tests/sratom_test.c
@@ -138,7 +138,7 @@ main()
const uint8_t* pstr = (const uint8_t*)"/foo/bar";
const size_t pstr_len = strlen((const char*)pstr);
lv2_atom_forge_property_head(&forge, eg_path, 0);
- lv2_atom_forge_uri(&forge, pstr, pstr_len);
+ lv2_atom_forge_path(&forge, pstr, pstr_len);
// eg_uri = (URI)"a/relative/uri"
const uint8_t* ustr = (const uint8_t*)"a/relative/uri";