context: improve graph recalc

Add reason to why we recalculate the graph for debugging purposes
Only recalculate graph when something relevant changed.
Block recalc from being called recursively.
This commit is contained in:
Wim Taymans 2020-04-24 11:27:00 +02:00
parent 39c2d5b963
commit 667c08ecc4
4 changed files with 28 additions and 15 deletions

View file

@ -964,7 +964,7 @@ int pw_proxy_init(struct pw_proxy *proxy, const char *type, uint32_t version);
void pw_proxy_remove(struct pw_proxy *proxy);
int pw_context_recalc_graph(struct pw_context *context);
int pw_context_recalc_graph(struct pw_context *context, const char *reason);
void pw_impl_port_update_info(struct pw_impl_port *port, const struct spa_port_info *info);