summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-01 14:31:45 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-01 14:31:45 +0200
commit83d5731a087ec01ab3f9fc474c8052ecc902b0de (patch)
tree5438927722fe26ab5f386392e30d5e87168f4f6c
parent51e84b626dc38c89d537b750948cc76bd4932e8e (diff)
should return ENOENT on mismatch
-rw-r--r--src/libasound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libasound.c b/src/libasound.c
index aae437b..d7027e9 100644
--- a/src/libasound.c
+++ b/src/libasound.c
@@ -235,7 +235,7 @@ snd_ctl_pcm_info(snd_ctl_t *ctl, snd_pcm_info_t *info)
return -1;
info->card = ctl->id;
- return (PCMS[info->id].stream == info->stream ? 0 : -1);
+ return (PCMS[info->id].stream == info->stream ? 0 : -ENOENT);
}
const char*