mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-07 12:06:32 -04:00
loopback: handle stream setup failure
Instead of silently failing. Also when we do the cleanup, make sure we don't free the props twice.
This commit is contained in:
parent
eadaa2608a
commit
c362bca5e9
1 changed files with 3 additions and 1 deletions
|
|
@ -1014,6 +1014,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
}
|
||||
|
||||
pw_properties_free(props);
|
||||
props = NULL;
|
||||
|
||||
pw_proxy_add_listener((struct pw_proxy*)impl->core,
|
||||
&impl->core_proxy_listener,
|
||||
|
|
@ -1022,7 +1023,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
&impl->core_listener,
|
||||
&core_events, impl);
|
||||
|
||||
setup_streams(impl);
|
||||
if ((res = setup_streams(impl)) < 0)
|
||||
goto error;
|
||||
|
||||
pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue