diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 767708503..dc416a09f 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -829,6 +829,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman SPA_FALLTHROUGH case SPA_NODE_COMMAND_Pause: this->started = false; + spa_log_debug(this->log, "%p: stopped", this); break; default: break; @@ -852,6 +853,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman switch (SPA_NODE_COMMAND_ID(command)) { case SPA_NODE_COMMAND_Start: this->started = true; + spa_log_debug(this->log, "%p: started", this); break; } return res; diff --git a/src/pipewire/context.c b/src/pipewire/context.c index d58c7ba2c..72c2797ab 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1263,7 +1263,7 @@ again: n->current_pending = false; } - pw_log_debug("%p: driving %p running:%d passive:%d quantum:%u '%s'", + pw_log_debug("%p: driver %p running:%d passive:%d quantum:%u '%s'", context, n, running, n->passive, quantum, n->name); /* first change the node states of the followers to the new target */ diff --git a/src/pipewire/impl-node.c b/src/pipewire/impl-node.c index ccd4c938f..3151b7156 100644 --- a/src/pipewire/impl-node.c +++ b/src/pipewire/impl-node.c @@ -247,7 +247,8 @@ static int start_node(struct pw_impl_node *this) if (impl->pending_state >= PW_NODE_STATE_RUNNING) return 0; - pw_log_debug("%p: start node driving:%d driver:%d", this, this->driving, this->driver); + pw_log_debug("%p: start node driving:%d driver:%d added:%d", this, + this->driving, this->driver, this->added); if (!(this->driving && this->driver)) { impl->pending_play = true; @@ -357,6 +358,9 @@ static void node_update_state(struct pw_impl_node *node, enum pw_node_state stat switch (state) { case PW_NODE_STATE_RUNNING: + pw_log_debug("%p: start node driving:%d driver:%d added:%d", node, + node->driving, node->driver, node->added); + if (node->driving && node->driver) { res = spa_node_send_command(node->node, &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start)); @@ -438,6 +442,9 @@ static int suspend_node(struct pw_impl_node *this) p->state = PW_IMPL_PORT_STATE_CONFIGURE; } + pw_log_debug("%p: suspend node driving:%d driver:%d added:%d", this, + this->driving, this->driver, this->added); + res = spa_node_send_command(this->node, &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend)); if (res == -ENOTSUP)