mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
metadata: clear item before remove
Otherwise the item is overwritten with the next entry and we should not clear it.
This commit is contained in:
parent
0237821b38
commit
760a63d340
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
clear_item(item);
|
||||
pw_array_remove(&this->metadata, item);
|
||||
type = NULL;
|
||||
changed++;
|
||||
pw_log_info(NAME" %p: remove id:%d key:%s", this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue