add some more debug log

This commit is contained in:
Wim Taymans 2018-09-25 17:08:59 +02:00
parent 39240fb9c0
commit 74ebff6b7d
3 changed files with 8 additions and 3 deletions

View file

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

View file

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

View file

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