mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-dump: mark objects without events as changed
Usually the event function marks the object as changed so when there is no event function, mark the change immediately so that we can dump it.
This commit is contained in:
parent
0e5ad1c0a4
commit
f891324e25
1 changed files with 2 additions and 3 deletions
|
|
@ -88,7 +88,6 @@ struct class {
|
|||
const char *type;
|
||||
uint32_t version;
|
||||
const void *events;
|
||||
void (*init) (struct object *object);
|
||||
void (*destroy) (struct object *object);
|
||||
void (*dump) (struct object *object);
|
||||
};
|
||||
|
|
@ -1223,8 +1222,8 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
pw_proxy_add_object_listener(o->proxy,
|
||||
&o->object_listener,
|
||||
o->class->events, o);
|
||||
if (o->class->init)
|
||||
o->class->init(o);
|
||||
else
|
||||
o->changed++;
|
||||
} else {
|
||||
o->changed++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue