mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
filter: handle context allocation failure
This commit is contained in:
parent
2a142edadb
commit
3e1eeb1c03
2 changed files with 4 additions and 4 deletions
|
|
@ -999,8 +999,8 @@ pw_filter_new_simple(struct pw_loop *loop,
|
|||
return NULL;
|
||||
|
||||
context = pw_context_new(loop, NULL, 0);
|
||||
|
||||
pw_fill_connect_properties(context, props);
|
||||
if (context == NULL)
|
||||
return NULL;
|
||||
|
||||
impl = filter_new(context, name, props, props);
|
||||
if (impl == NULL) {
|
||||
|
|
|
|||
|
|
@ -1120,8 +1120,8 @@ pw_stream_new_simple(struct pw_loop *loop,
|
|||
return NULL;
|
||||
|
||||
context = pw_context_new(loop, NULL, 0);
|
||||
|
||||
pw_fill_connect_properties(context, props);
|
||||
if (context == NULL)
|
||||
return NULL;
|
||||
|
||||
impl = stream_new(context, name, props, NULL);
|
||||
if (impl == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue