From: Jaroslav Kysela Date: Fri, 10 Mar 2000 14:05:49 +0000 (+0000) Subject: Fixed return value for snd_pcm_close X-Git-Tag: v1.0.3~1310 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bcb411c1d7e5acfbff62f0aa87d10c2f3ca89e42;p=alsa-lib.git Fixed return value for snd_pcm_close --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 99fccae2..d25ac4b2 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -149,7 +149,7 @@ int snd_pcm_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevi int snd_pcm_close(snd_pcm_t *pcm) { - int res = -EINVAL; + int res = 0; int channel; if (!pcm)