mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
add some more debug log
This commit is contained in:
parent
39240fb9c0
commit
74ebff6b7d
3 changed files with 8 additions and 3 deletions
|
|
@ -53,7 +53,8 @@ static inline int spa_graph_impl_run(void *data)
|
|||
|
||||
spa_graph_state_reset(s);
|
||||
|
||||
spa_debug("graph %p node %p: add %d status %d", g, n, s->pending, s->status);
|
||||
spa_debug("graph %p node %p: state %p add %d status %d", g, n,
|
||||
s, s->pending, s->status);
|
||||
|
||||
if (s->pending == 0)
|
||||
spa_list_append(&pending, &n->sched_link);
|
||||
|
|
|
|||
|
|
@ -162,16 +162,16 @@ spa_graph_link_add(struct spa_graph_node *out,
|
|||
struct spa_graph_state *state,
|
||||
struct spa_graph_link *link)
|
||||
{
|
||||
spa_debug("node %p add link %p to state %p", out, link, state);
|
||||
link->state = state;
|
||||
state->required++;
|
||||
spa_debug("node %p add link %p to state %p %d", out, link, state, state->required);
|
||||
spa_list_append(&out->links, &link->link);
|
||||
}
|
||||
|
||||
static inline void spa_graph_link_remove(struct spa_graph_link *link)
|
||||
{
|
||||
spa_debug("link %p remove", link);
|
||||
link->state->required--;
|
||||
spa_debug("link %p state %p remove %d", link, link->state, link->state->required);
|
||||
spa_list_remove(&link->link);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -679,6 +679,10 @@ static void node_process(void *data, int status)
|
|||
struct timespec ts;
|
||||
struct pw_driver_quantum *q = node->rt.quantum;
|
||||
|
||||
if (node->rt.driver->state->pending != 0) {
|
||||
pw_log_warn("node %p: graph not finished", node);
|
||||
}
|
||||
|
||||
if (node->rt.clock) {
|
||||
q->nsec = node->rt.clock->nsec;
|
||||
q->rate = node->rt.clock->rate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue