]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Use the right word in message of areacord
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 Aug 2006 15:29:51 +0000 (17:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Aug 2006 15:29:51 +0000 (17:29 +0200)
Use the word "stdin" instead of "stdout" when arecord is used.

aplay/aplay.c

index 38643221e3c5898f17e2429203b5b9a77c859e9d..e467f92968a70d6f7468268007c5080603486e39 100644 (file)
@@ -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)