mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
graph: improve debug
This commit is contained in:
parent
5e21edd8d5
commit
65a8bc8b34
2 changed files with 10 additions and 3 deletions
|
|
@ -100,8 +100,10 @@ static inline int spa_graph_impl_have_output(void *data, struct spa_graph_node *
|
||||||
struct spa_graph_node *pnode;
|
struct spa_graph_node *pnode;
|
||||||
uint32_t prequired, pready;
|
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;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
pnode = pport->node;
|
pnode = pport->node;
|
||||||
if (pport->io->status == SPA_RESULT_HAVE_BUFFER)
|
if (pport->io->status == SPA_RESULT_HAVE_BUFFER)
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,19 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <spa/graph.h>
|
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
|
||||||
#include "pipewire/mem.h"
|
#include "pipewire/mem.h"
|
||||||
#include "pipewire/pipewire.h"
|
#include "pipewire/pipewire.h"
|
||||||
#include "pipewire/introspect.h"
|
#include "pipewire/introspect.h"
|
||||||
|
|
||||||
|
#ifndef spa_debug
|
||||||
|
#define spa_debug pw_log_trace
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <spa/graph.h>
|
||||||
|
|
||||||
struct pw_command;
|
struct pw_command;
|
||||||
|
|
||||||
typedef bool (*pw_command_func_t) (struct pw_command *command, struct pw_core *core, char **err);
|
typedef bool (*pw_command_func_t) (struct pw_command *command, struct pw_core *core, char **err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue