mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Revert "global: handle id allocation errors"
This reverts commit e241febe62.
This commit is contained in:
parent
92ef2cd56b
commit
adee9931b6
1 changed files with 1 additions and 6 deletions
|
|
@ -98,17 +98,12 @@ pw_global_new(struct pw_context *context,
|
||||||
spa_list_init(&this->resource_list);
|
spa_list_init(&this->resource_list);
|
||||||
spa_hook_list_init(&this->listener_list);
|
spa_hook_list_init(&this->listener_list);
|
||||||
|
|
||||||
if (pw_context_add_global(context, this) == SPA_ID_INVALID) {
|
pw_context_add_global(context, this);
|
||||||
res = -ENOMEM;
|
|
||||||
goto error_free;
|
|
||||||
}
|
|
||||||
|
|
||||||
pw_log_debug("%p: new %s %d", this, this->type, this->id);
|
pw_log_debug("%p: new %s %d", this, this->type, this->id);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
error_free:
|
|
||||||
free(this);
|
|
||||||
error_cleanup:
|
error_cleanup:
|
||||||
pw_properties_free(properties);
|
pw_properties_free(properties);
|
||||||
errno = -res;
|
errno = -res;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue