module-profiler: ignore peer targets

Only log the targets of the node, ignoring the peers of the driver or
else we will log some nodes twice.

Fixes #3278
This commit is contained in:
Wim Taymans 2023-06-09 17:06:48 +02:00
parent f0e8b95d76
commit 4e070c90aa
3 changed files with 5 additions and 1 deletions

View file

@ -221,7 +221,7 @@ static void context_do_profile(void *data, struct pw_impl_node *node)
struct pw_node_activation *na;
struct spa_fraction latency;
if (t->id == id)
if (t->id == id || t->flags & PW_NODE_TARGET_PEER)
continue;
if (n != NULL) {