mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-24 01:40:07 -05:00
fix return code checking in snd_pcm_hw_hw_refine
The isse was introduced in commit 7f2d6c3
Fixes alsa-project/alsa-lib#251
This commit is contained in:
parent
496c4e031b
commit
a34d8e9ba8
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ static int snd_pcm_hw_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
||||||
if (hw->rates.min > 0) {
|
if (hw->rates.min > 0) {
|
||||||
err = _snd_pcm_hw_param_set_minmax(params, SND_PCM_HW_PARAM_RATE,
|
err = _snd_pcm_hw_param_set_minmax(params, SND_PCM_HW_PARAM_RATE,
|
||||||
hw->rates.min, 0, hw->rates.max + 1, -1);
|
hw->rates.min, 0, hw->rates.max + 1, -1);
|
||||||
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue