pw-dump: remember the subject of metadata

So that we can also print it instead of printing 0.
This commit is contained in:
Wim Taymans 2021-06-16 09:45:50 +02:00
parent f15d585f8d
commit 07d43a001b

View file

@ -1149,6 +1149,7 @@ static int metadata_property(void *object,
if (e == NULL)
return -errno;
e->subject = subject;
e->key = SPA_PTROFF(e, sizeof(*e), void);
strcpy(e->key, key);
e->value = SPA_PTROFF(e->key, strlen(e->key) + 1, void);