diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-07-13 23:15:12 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-07-13 16:34:30 +0200 |
commit | 4c124b07599b9b6538955c50e3b96bf4e3465bb9 (patch) | |
tree | 84f1f0518ece1829737bc3fb939a9db54223f93a | |
parent | 9ea5748c6630c52a52d5d9bf9454d910964fb274 (diff) | |
download | alsa-lib-4c124b07599b9b6538955c50e3b96bf4e3465bb9.tar.gz |
pcm: fix missing return value of snd_pcm_status()
In former commits for thread-safe PCM APIs, snd_pcm_status() lost its
return value.
This commit regain it.
Fixes: 54931e5a5455('pcm: Add thread-safety to PCM API')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/pcm/pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index a66e8af6..6c34719d 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -953,6 +953,8 @@ int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status) snd_pcm_lock(pcm); err = pcm->fast_ops->status(pcm->fast_op_arg, status); snd_pcm_unlock(pcm); + + return err; } /** |