From 889e3bc1c64ce2709616b2f580323dbad3042575 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 12 Jun 2002 16:38:42 +0000 Subject: [PATCH] fixed compile with the recent changes. --- src/pcm/scopes/level.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pcm/scopes/level.c b/src/pcm/scopes/level.c index 9f67d0cf..b63bd488 100644 --- a/src/pcm/scopes/level.c +++ b/src/pcm/scopes/level.c @@ -218,7 +218,8 @@ int snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name, } int _snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name, - snd_config_t *conf) + snd_config_t *root, snd_config_t *conf, + snd_pcm_stream_t stream, int mode) { snd_config_iterator_t i, next; snd_pcm_scope_t *scope; @@ -226,7 +227,9 @@ int _snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name, int err; snd_config_for_each(i, next, conf) { snd_config_t *n = snd_config_iterator_entry(i); - const char *id = snd_config_get_id(n); + const char *id; + if (snd_config_get_id(n, &id) < 0) + continue; if (strcmp(id, "comment") == 0) continue; if (strcmp(id, "type") == 0) -- 2.47.1