• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Pipewireパッケージ(ちょっと変更)


Commit MetaInfo

Revisión45c99cd4872ee8c335aee8b9282cc7d2a00c8cba (tree)
Tiempo2023-09-28 18:22:46
AutorWim Taymans <wtaymans@redh...>
CommiterWim Taymans

Log Message

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.

Cambiar Resumen

Diferencia incremental

--- a/src/pipewire/impl-link.c
+++ b/src/pipewire/impl-link.c
@@ -1545,6 +1545,7 @@ SPA_EXPORT
15451545 void pw_impl_link_destroy(struct pw_impl_link *link)
15461546 {
15471547 struct impl *impl = SPA_CONTAINER_OF(link, struct impl, this);
1548+ bool was_prepared = link->prepared;
15481549
15491550 pw_log_debug("%p: destroy", impl);
15501551 pw_log_info("(%s) destroy", link->name);
@@ -1570,7 +1571,7 @@ void pw_impl_link_destroy(struct pw_impl_link *link)
15701571 pw_global_destroy(link->global);
15711572 }
15721573
1573- if (link->prepared)
1574+ if (was_prepared)
15741575 pw_context_recalc_graph(link->context, "link destroy");
15751576
15761577 pw_log_debug("%p: free", impl);