summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_null.c')
-rw-r--r--src/pcm/pcm_null.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c
index e45c9164..61962528 100644
--- a/src/pcm/pcm_null.c
+++ b/src/pcm/pcm_null.c
@@ -376,14 +376,15 @@ int _snd_pcm_null_open(snd_pcm_t **pcmp, char *name,
{
snd_config_iterator_t i;
snd_config_foreach(i, conf) {
- snd_config_t *n = snd_config_entry(i);
- if (strcmp(n->id, "comment") == 0)
+ snd_config_t *n = snd_config_iterator_entry(i);
+ const char *id = snd_config_get_id(n);
+ if (strcmp(id, "comment") == 0)
continue;
- if (strcmp(n->id, "type") == 0)
+ if (strcmp(id, "type") == 0)
continue;
- if (strcmp(n->id, "stream") == 0)
+ if (strcmp(id, "stream") == 0)
continue;
- ERR("Unknown field %s", n->id);
+ ERR("Unknown field %s", id);
return -EINVAL;
}
return snd_pcm_null_open(pcmp, name, stream, mode);