From 72c814db2a4f4d3f590e098b7959290fe0d82786 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 13 Oct 2003 10:42:32 +0000 Subject: Fixed typo --- test/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/pcm.c b/test/pcm.c index 2c8e1b97..a2ad1dc5 100644 --- a/test/pcm.c +++ b/test/pcm.c @@ -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; } -- cgit v1.2.3