mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa: do the right log level checks
spa_log_level_enabled does not work when a custom log level has been set. Use spa_log_level_topic_enabled instead.
This commit is contained in:
parent
73073eb33f
commit
54b499b1cf
2 changed files with 4 additions and 4 deletions
|
|
@ -186,7 +186,7 @@ static void init_ports(struct seq_state *state)
|
|||
|
||||
static void debug_event(struct seq_state *state, snd_seq_event_t *ev)
|
||||
{
|
||||
if (SPA_LIKELY(!spa_log_level_enabled(state->log, SPA_LOG_LEVEL_TRACE)))
|
||||
if (SPA_LIKELY(!spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_TRACE)))
|
||||
return;
|
||||
|
||||
spa_log_trace(state->log, "event type:%d flags:0x%x", ev->type, ev->flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue