Commit 760a63d3 authored by Wim Taymans's avatar Wim Taymans
Browse files

metadata: clear item before remove

Otherwise the item is overwritten with the next entry and we should
not clear it.
parent 0237821b
Pipeline #241516 failed with stages
in 48 seconds
......@@ -192,8 +192,8 @@ static int impl_set_property(void *object,
item = find_item(this, subject, key);
if (value == NULL) {
if (item != NULL) {
pw_array_remove(&this->metadata, item);
pw_array_remove(&this->metadata, item);
type = NULL;
pw_log_info(NAME" %p: remove id:%d key:%s", this,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment