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:
Gunnar Dibbern 2023-01-19 16:32:42 +01:00
parent 496c4e031b
commit a34d8e9ba8

View file

@ -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) {
err = _snd_pcm_hw_param_set_minmax(params, SND_PCM_HW_PARAM_RATE,
hw->rates.min, 0, hw->rates.max + 1, -1);
if (err < 0)
return err;
}