diff --git a/spa/include/spa/graph-scheduler3.h b/spa/include/spa/graph-scheduler3.h index 29dbdaae4..27e494b5e 100644 --- a/spa/include/spa/graph-scheduler3.h +++ b/spa/include/spa/graph-scheduler3.h @@ -100,8 +100,10 @@ static inline int spa_graph_impl_have_output(void *data, struct spa_graph_node * struct spa_graph_node *pnode; uint32_t prequired, pready; - if ((pport = p->peer) == NULL) + if ((pport = p->peer) == NULL) { + spa_debug("node %p port %p has no peer", node, p); continue; + } pnode = pport->node; if (pport->io->status == SPA_RESULT_HAVE_BUFFER) diff --git a/src/pipewire/private.h b/src/pipewire/private.h index 268279e76..13a2fbc58 100644 --- a/src/pipewire/private.h +++ b/src/pipewire/private.h @@ -24,14 +24,19 @@ extern "C" { #endif -#include - #include + #include "pipewire/mem.h" #include "pipewire/pipewire.h" #include "pipewire/introspect.h" +#ifndef spa_debug +#define spa_debug pw_log_trace +#endif + +#include + struct pw_command; typedef bool (*pw_command_func_t) (struct pw_command *command, struct pw_core *core, char **err);