]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fixed non interleaved with only one channels case
authorAbramo Bagnara <abramo@alsa-project.org>
Mon, 11 Dec 2000 11:19:39 +0000 (11:19 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Mon, 11 Dec 2000 11:19:39 +0000 (11:19 +0000)
aplay/aplay.c

index b079f04f013ee438e62ea213bc27b677e00d2007..869fa08dc0057673ed4bb5d8ec8cfacce5416b03 100644 (file)
@@ -1678,7 +1678,7 @@ static void playbackv(char **names, unsigned int count)
        for (channel = 0; channel < channels; ++channel)
                fds[channel] = -1;
 
-       if (count == 1) {
+       if (count == 1 && channels > 1) {
                size_t len = strlen(names[0]);
                char format[1024];
                memcpy(format, names[0], len);