mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-25 01:40:10 -05:00
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>
This commit is contained in:
parent
9ea5748c66
commit
4c124b0759
1 changed files with 2 additions and 0 deletions
|
|
@ -953,6 +953,8 @@ int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status)
|
||||||
snd_pcm_lock(pcm);
|
snd_pcm_lock(pcm);
|
||||||
err = pcm->fast_ops->status(pcm->fast_op_arg, status);
|
err = pcm->fast_ops->status(pcm->fast_op_arg, status);
|
||||||
snd_pcm_unlock(pcm);
|
snd_pcm_unlock(pcm);
|
||||||
|
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue