Pipewireパッケージ(ちょっと変更)
Revisión | 45c99cd4872ee8c335aee8b9282cc7d2a00c8cba (tree) |
---|---|
Tiempo | 2023-09-28 18:22:46 |
Autor | Wim Taymans <wtaymans@redh...> |
Commiter | Wim Taymans |
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.
@@ -1545,6 +1545,7 @@ SPA_EXPORT | ||
1545 | 1545 | void pw_impl_link_destroy(struct pw_impl_link *link) |
1546 | 1546 | { |
1547 | 1547 | struct impl *impl = SPA_CONTAINER_OF(link, struct impl, this); |
1548 | + bool was_prepared = link->prepared; | |
1548 | 1549 | |
1549 | 1550 | pw_log_debug("%p: destroy", impl); |
1550 | 1551 | pw_log_info("(%s) destroy", link->name); |
@@ -1570,7 +1571,7 @@ void pw_impl_link_destroy(struct pw_impl_link *link) | ||
1570 | 1571 | pw_global_destroy(link->global); |
1571 | 1572 | } |
1572 | 1573 | |
1573 | - if (link->prepared) | |
1574 | + if (was_prepared) | |
1574 | 1575 | pw_context_recalc_graph(link->context, "link destroy"); |
1575 | 1576 | |
1576 | 1577 | pw_log_debug("%p: free", impl); |