mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
add some more debug
This commit is contained in:
parent
e8aef6b4bd
commit
7c93c29cfd
3 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue