mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
Added '-' file as stdin/stdout..
This commit is contained in:
parent
a666670e6b
commit
87c7c4f447
1 changed files with 2 additions and 2 deletions
|
@ -1094,7 +1094,7 @@ static void playback(char *name)
|
|||
int fd, ofs;
|
||||
|
||||
snd_pcm_flush_playback(pcm_handle);
|
||||
if (!name) {
|
||||
if (!name || !strcmp(name, "-")) {
|
||||
fd = 0;
|
||||
name = "stdin";
|
||||
} else {
|
||||
|
@ -1147,7 +1147,7 @@ static void record(char *name)
|
|||
int fd;
|
||||
|
||||
snd_pcm_flush_record(pcm_handle);
|
||||
if (!name) {
|
||||
if (!name || !strcmp(name, "-")) {
|
||||
fd = 1;
|
||||
name = "stdout";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue