mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
metadata: emit removed messages from clear
Consume the array until we have removed all subjects.
This commit is contained in:
parent
9174e5ca20
commit
720b7b5c6a
1 changed files with 8 additions and 2 deletions
|
|
@ -146,9 +146,13 @@ static void clear_items(struct metadata *this)
|
|||
{
|
||||
struct item *item;
|
||||
|
||||
pw_array_for_each(item, &this->metadata)
|
||||
clear_item(item);
|
||||
while (true) {
|
||||
item = pw_array_first(&this->metadata);
|
||||
if (!pw_array_check(&this->metadata, item))
|
||||
break;
|
||||
|
||||
clear_subjects(this, item->subject);
|
||||
}
|
||||
pw_array_reset(&this->metadata);
|
||||
}
|
||||
|
||||
|
|
@ -161,6 +165,8 @@ static int impl_set_property(void *object,
|
|||
struct metadata *this = object;
|
||||
struct item *item = NULL;
|
||||
|
||||
pw_log_debug(NAME" %p: id:%d key:%s type:%s value:%s", this, subject, key, type, value);
|
||||
|
||||
if (key == NULL)
|
||||
return clear_subjects(this, subject);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue