]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fixed compile with the recent changes.
authorTakashi Iwai <tiwai@suse.de>
Wed, 12 Jun 2002 16:38:42 +0000 (16:38 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Jun 2002 16:38:42 +0000 (16:38 +0000)
src/pcm/scopes/level.c

index 9f67d0cf78d0c0703b6e046501abfe2db5a9dae8..b63bd4889e9b595f8c6810da002f0fb1279957b9 100644 (file)
@@ -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)