mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-05 15:16:45 +01:00
Fixed non interleaved with only one channels case
This commit is contained in:
parent
eadcd7a727
commit
2f6416f347
1 changed files with 1 additions and 1 deletions
|
@ -1678,7 +1678,7 @@ static void playbackv(char **names, unsigned int count)
|
||||||
for (channel = 0; channel < channels; ++channel)
|
for (channel = 0; channel < channels; ++channel)
|
||||||
fds[channel] = -1;
|
fds[channel] = -1;
|
||||||
|
|
||||||
if (count == 1) {
|
if (count == 1 && channels > 1) {
|
||||||
size_t len = strlen(names[0]);
|
size_t len = strlen(names[0]);
|
||||||
char format[1024];
|
char format[1024];
|
||||||
memcpy(format, names[0], len);
|
memcpy(format, names[0], len);
|
||||||
|
|
Loading…
Reference in a new issue