mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Improve debug
This commit is contained in:
parent
eb1d675cb0
commit
ff96165035
7 changed files with 37 additions and 17 deletions
|
|
@ -1158,7 +1158,8 @@ int spa_alsa_start(struct state *state)
|
|||
state, state->threshold, state->duration, state->rate_denom, state->slaved);
|
||||
|
||||
CHECK(set_swparams(state), "swparams");
|
||||
snd_pcm_dump(state->hndl, state->output);
|
||||
if (SPA_UNLIKELY(spa_log_level_enabled(state->log, SPA_LOG_LEVEL_DEBUG)))
|
||||
snd_pcm_dump(state->hndl, state->output);
|
||||
|
||||
if ((err = snd_pcm_prepare(state->hndl)) < 0) {
|
||||
spa_log_error(state->log, NAME" %p: snd_pcm_prepare error: %s", state,
|
||||
|
|
|
|||
|
|
@ -524,11 +524,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
if (spa_pod_filter(&b, &result.param, param, filter) < 0) {
|
||||
spa_debug_pod(2, NULL, param);
|
||||
spa_debug_pod(2, NULL, filter);
|
||||
if (spa_pod_filter(&b, &result.param, param, filter) < 0)
|
||||
goto next;
|
||||
}
|
||||
|
||||
spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue