]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed typo
authorJaroslav Kysela <perex@perex.cz>
Mon, 13 Oct 2003 10:42:32 +0000 (10:42 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 13 Oct 2003 10:42:32 +0000 (10:42 +0000)
test/pcm.c

index 2c8e1b97771c76f3b9f9486023ac95ad02621bdb..a2ad1dc50e6be78d02f8a912ab40cfca8fe64a5e 100644 (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;
        }