mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -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);
|
item = find_item(this, subject, key);
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
if (item != NULL) {
|
if (item != NULL) {
|
||||||
pw_array_remove(&this->metadata, item);
|
|
||||||
clear_item(item);
|
clear_item(item);
|
||||||
|
pw_array_remove(&this->metadata, item);
|
||||||
type = NULL;
|
type = NULL;
|
||||||
changed++;
|
changed++;
|
||||||
pw_log_info(NAME" %p: remove id:%d key:%s", this,
|
pw_log_info(NAME" %p: remove id:%d key:%s", this,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue