mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
impl-link: recalc graph after destroy prepared link
Get and use the prepared state of the link *before* unpreparing the link as part of the destroy.
This commit is contained in:
parent
447ad35585
commit
45c99cd487
1 changed files with 2 additions and 1 deletions
|
|
@ -1545,6 +1545,7 @@ SPA_EXPORT
|
||||||
void pw_impl_link_destroy(struct pw_impl_link *link)
|
void pw_impl_link_destroy(struct pw_impl_link *link)
|
||||||
{
|
{
|
||||||
struct impl *impl = SPA_CONTAINER_OF(link, struct impl, this);
|
struct impl *impl = SPA_CONTAINER_OF(link, struct impl, this);
|
||||||
|
bool was_prepared = link->prepared;
|
||||||
|
|
||||||
pw_log_debug("%p: destroy", impl);
|
pw_log_debug("%p: destroy", impl);
|
||||||
pw_log_info("(%s) destroy", link->name);
|
pw_log_info("(%s) destroy", link->name);
|
||||||
|
|
@ -1570,7 +1571,7 @@ void pw_impl_link_destroy(struct pw_impl_link *link)
|
||||||
pw_global_destroy(link->global);
|
pw_global_destroy(link->global);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link->prepared)
|
if (was_prepared)
|
||||||
pw_context_recalc_graph(link->context, "link destroy");
|
pw_context_recalc_graph(link->context, "link destroy");
|
||||||
|
|
||||||
pw_log_debug("%p: free", impl);
|
pw_log_debug("%p: free", impl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue