mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Remove some useless checks
This commit is contained in:
parent
8123e271ec
commit
d31c057b42
6 changed files with 7 additions and 19 deletions
|
|
@ -1043,9 +1043,7 @@ static struct sm_object *init_object(struct impl *impl, const struct object_info
|
|||
pw_proxy_add_object_listener(obj->proxy, &obj->object_listener, info->events, obj);
|
||||
SPA_FLAG_UPDATE(obj->mask, SM_OBJECT_CHANGE_MASK_LISTENER, info->events != NULL);
|
||||
}
|
||||
if (handle) {
|
||||
pw_proxy_add_listener(obj->handle, &obj->handle_listener, &proxy_events, obj);
|
||||
}
|
||||
pw_proxy_add_listener(obj->handle, &obj->handle_listener, &proxy_events, obj);
|
||||
|
||||
if (info->init)
|
||||
info->init(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue