Fixed typo

This commit is contained in:
Jaroslav Kysela 2003-10-13 10:42:32 +00:00
parent 2fb3e68e11
commit 72c814db2a

View file

@ -127,7 +127,7 @@ static int set_hwparams(snd_pcm_t *handle,
return err;
}
err = snd_pcm_hw_params_get_period_size(params, &period_size, &dir);
if (err > 0) {
if (err < 0) {
printf("Unable to get period size for playback: %s\n", snd_strerror(err));
return err;
}