graph: improve debug

This commit is contained in:
Wim Taymans 2017-10-18 10:03:55 +02:00
parent 5e21edd8d5
commit 65a8bc8b34
2 changed files with 10 additions and 3 deletions

View file

@ -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)

View file

@ -24,14 +24,19 @@
extern "C" {
#endif
#include <spa/graph.h>
#include <sys/socket.h>
#include "pipewire/mem.h"
#include "pipewire/pipewire.h"
#include "pipewire/introspect.h"
#ifndef spa_debug
#define spa_debug pw_log_trace
#endif
#include <spa/graph.h>
struct pw_command;
typedef bool (*pw_command_func_t) (struct pw_command *command, struct pw_core *core, char **err);