filter: handle context allocation failure

This commit is contained in:
Wim Taymans 2019-12-12 16:27:33 +01:00
parent 2a142edadb
commit 3e1eeb1c03
2 changed files with 4 additions and 4 deletions

View file

@ -999,8 +999,8 @@ pw_filter_new_simple(struct pw_loop *loop,
return NULL; return NULL;
context = pw_context_new(loop, NULL, 0); context = pw_context_new(loop, NULL, 0);
if (context == NULL)
pw_fill_connect_properties(context, props); return NULL;
impl = filter_new(context, name, props, props); impl = filter_new(context, name, props, props);
if (impl == NULL) { if (impl == NULL) {

View file

@ -1120,8 +1120,8 @@ pw_stream_new_simple(struct pw_loop *loop,
return NULL; return NULL;
context = pw_context_new(loop, NULL, 0); context = pw_context_new(loop, NULL, 0);
if (context == NULL)
pw_fill_connect_properties(context, props); return NULL;
impl = stream_new(context, name, props, NULL); impl = stream_new(context, name, props, NULL);
if (impl == NULL) { if (impl == NULL) {