link: only debug when asked to

This commit is contained in:
Wim Taymans 2017-06-19 16:00:43 +02:00
parent bc22c58435
commit 910318d71f

View file

@ -476,6 +476,7 @@ static int do_allocation(struct pw_link *this, uint32_t in_state, uint32_t out_s
for (i = 0, offset = 0; i < n_params; i++) { for (i = 0, offset = 0; i < n_params; i++) {
params[i] = SPA_MEMBER(buffer, offset, struct spa_param); params[i] = SPA_MEMBER(buffer, offset, struct spa_param);
spa_param_fixate(params[i]); spa_param_fixate(params[i]);
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
spa_debug_param(params[i]); spa_debug_param(params[i]);
offset += SPA_ROUND_UP_N(SPA_POD_SIZE(params[i]), 8); offset += SPA_ROUND_UP_N(SPA_POD_SIZE(params[i]), 8);
} }