impl-node: add cycle to debug

Emit rt_start after incrementing the cycle so that it can use the new
cycle value.
This commit is contained in:
Wim Taymans 2024-04-17 11:24:56 +02:00
parent ec13e9148b
commit bf273690fd

View file

@ -1887,9 +1887,9 @@ static int node_ready(void *data, int status)
if (SPA_UNLIKELY((pending = pw_node_activation_state_xchg(state)) > 0)) { if (SPA_UNLIKELY((pending = pw_node_activation_state_xchg(state)) > 0)) {
pw_log_debug("(%s-%u) graph not finished: state:%p quantum:%"PRIu64 pw_log_debug("(%s-%u) graph not finished: state:%p quantum:%"PRIu64
" pending %d/%d", node->name, node->info.id, " pending %d/%d cycle:%u", node->name, node->info.id,
state, a->position.clock.duration, state, a->position.clock.duration,
pending, state->required); pending, state->required, a->position.clock.cycle);
process_node(node); process_node(node);
check_states(node, nsec); check_states(node, nsec);
pw_impl_node_rt_emit_incomplete(node); pw_impl_node_rt_emit_incomplete(node);
@ -1962,8 +1962,8 @@ again:
update_position(node, all_ready, nsec); update_position(node, all_ready, nsec);
pw_impl_node_rt_emit_start(node);
a->position.clock.cycle++; a->position.clock.cycle++;
pw_impl_node_rt_emit_start(node);
} }
/* this should not happen, driver nodes that are not currently driving /* this should not happen, driver nodes that are not currently driving
* should not emit the ready callback */ * should not emit the ready callback */