From 3de280c6f4cca9ce7e311cff008a49d9612f40ef Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 3 Aug 2006 17:29:51 +0200 Subject: [PATCH] Use the right word in message of areacord Use the word "stdin" instead of "stdout" when arecord is used. --- aplay/aplay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 3864322..e467f92 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1922,10 +1922,12 @@ static void end_au(int fd) static void header(int rtype, char *name) { if (!quiet_mode) { + if (! name) + name = (stream == SND_PCM_STREAM_PLAYBACK) ? "stdout" : "stdin"; fprintf(stderr, "%s %s '%s' : ", (stream == SND_PCM_STREAM_PLAYBACK) ? _("Playing") : _("Recording"), gettext(fmt_rec_table[rtype].what), - name ? name : "stdin"); + name); fprintf(stderr, "%s, ", snd_pcm_format_description(hwparams.format)); fprintf(stderr, _("Rate %d Hz, "), hwparams.rate); if (hwparams.channels == 1)