mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Improve debug
This commit is contained in:
parent
eb1d675cb0
commit
ff96165035
7 changed files with 37 additions and 17 deletions
|
|
@ -345,7 +345,8 @@ static void node_event_param(void *object, int seq,
|
|||
return;
|
||||
|
||||
spa_pod_object_fixate((struct spa_pod_object*)param);
|
||||
spa_debug_pod(2, NULL, param);
|
||||
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
|
||||
spa_debug_pod(2, NULL, param);
|
||||
|
||||
if (spa_format_audio_raw_parse(param, &info) < 0)
|
||||
goto error;
|
||||
|
|
@ -356,7 +357,8 @@ static void node_event_param(void *object, int seq,
|
|||
|
||||
error:
|
||||
pw_log_warn("unhandled param:");
|
||||
spa_debug_pod(2, NULL, param);
|
||||
if (pw_log_level_enabled(SPA_LOG_LEVEL_WARN))
|
||||
spa_debug_pod(2, NULL, param);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue