summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2003-10-13 10:42:32 +0000
committerJaroslav Kysela <perex@perex.cz>2003-10-13 10:42:32 +0000
commit72c814db2a4f4d3f590e098b7959290fe0d82786 (patch)
tree4e326434320d3ad6209d4bebbb6437e8bd65ed27 /test
parent2fb3e68e11eaf713273649faa8ebcfdf0bdf3128 (diff)
Fixed typo
Diffstat (limited to 'test')
-rw-r--r--test/pcm.c2
1 files changed, 1 insertions, 1 deletions
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;
}