mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-10 23:50:21 -04:00
modules: handle allocation errors gracefully
This commit is contained in:
parent
24f9b9a335
commit
dd695ee5a7
6 changed files with 35 additions and 4 deletions
|
|
@ -931,6 +931,8 @@ static int create_stream(struct stream_info *info)
|
|||
|
||||
if (info->on_demand_id) {
|
||||
s->on_demand_id = strdup(info->on_demand_id);
|
||||
if (s->on_demand_id == NULL)
|
||||
goto error_errno;
|
||||
pw_properties_set(info->stream_props, "combine.on-demand-id", s->on_demand_id);
|
||||
} else {
|
||||
if (pw_properties_get(info->stream_props, PW_KEY_TARGET_OBJECT) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue