summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Viktor Semykin <thesame.ml@gmail.com>2010-06-20 17:27:15 +0300
committerGravatar Viktor Semykin <thesame.ml@gmail.com>2010-06-20 17:27:15 +0300
commit508ec3e19c3ae6854674d6a363d3afaebdbe281b (patch)
tree66cc2906852d9e8053877bee9aa7ebd7d5192a51 /plugins/gtkui
parent07a6c2c8430a2c2386dc9063fbaa353a73abb78c (diff)
parent8038f2149215607f58078503c4afac35db11fae9 (diff)
merge
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/gtkui.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index ec7c92b1..8a5acecd 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -150,7 +150,15 @@ update_songinfo (gpointer ctx) {
int mindur = duration / 60;
int secdur = duration - mindur * 60;
- const char *mode = c->channels == 1 ? _("Mono") : _("Stereo");
+ const char *mode;
+ char temp[20];
+ if (c->channels <= 2) {
+ c->channels == 1 ? _("Mono") : _("Stereo");
+ }
+ else {
+ snprintf (temp, sizeof (temp), "%dch Multichannel", c->channels);
+ mode = temp;
+ }
int samplerate = c->samplerate;
int bitspersample = c->bps;
songpos = playpos;