mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
improve debug
This commit is contained in:
parent
ad8fa41678
commit
9119e8a26e
2 changed files with 4 additions and 3 deletions
|
|
@ -336,7 +336,7 @@ static int negotiate_buffers(struct impl *this)
|
||||||
struct spa_data *datas;
|
struct spa_data *datas;
|
||||||
uint32_t follower_flags, conv_flags;
|
uint32_t follower_flags, conv_flags;
|
||||||
|
|
||||||
spa_log_debug(this->log, "%p: %d", this, this->n_buffers);
|
spa_log_debug(this->log, "%p: n_buffers:%d", this, this->n_buffers);
|
||||||
|
|
||||||
if (this->target == this->follower)
|
if (this->target == this->follower)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -738,6 +738,8 @@ static int negotiate_format(struct impl *this)
|
||||||
struct spa_pod_builder b = { 0 };
|
struct spa_pod_builder b = { 0 };
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
spa_log_debug(this->log, "%p: have_format:%d", this, this->have_format);
|
||||||
|
|
||||||
if (this->have_format)
|
if (this->have_format)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
@ -746,7 +748,6 @@ static int negotiate_format(struct impl *this)
|
||||||
|
|
||||||
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||||
|
|
||||||
spa_log_debug(this->log, "%p: negiotiate", this);
|
|
||||||
|
|
||||||
spa_node_send_command(this->follower,
|
spa_node_send_command(this->follower,
|
||||||
&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_ParamBegin));
|
&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_ParamBegin));
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ static int start_node(struct pw_impl_node *this)
|
||||||
if (impl->pending_state >= PW_NODE_STATE_RUNNING)
|
if (impl->pending_state >= PW_NODE_STATE_RUNNING)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pw_log_debug("%p: start node", this);
|
pw_log_debug("%p: start node driving:%d driver:%d", this, this->driving, this->driver);
|
||||||
|
|
||||||
if (!(this->driving && this->driver)) {
|
if (!(this->driving && this->driver)) {
|
||||||
impl->pending_play = true;
|
impl->pending_play = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue