summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gtkui.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r--plugins/gtkui/gtkui.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index 06ceb756..a2da9d74 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -45,8 +45,8 @@
#include "eq.h"
#include "actions.h"
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
+#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+//#define trace(fmt,...)
static DB_gui_t plugin;
DB_functions_t *deadbeef;
@@ -154,15 +154,15 @@ update_songinfo (gpointer ctx) {
const char *mode;
char temp[20];
- if (c->channels <= 2) {
- mode = c->channels == 1 ? _("Mono") : _("Stereo");
+ if (c->fmt.channels <= 2) {
+ mode = c->fmt.channels == 1 ? _("Mono") : _("Stereo");
}
else {
- snprintf (temp, sizeof (temp), "%dch Multichannel", c->channels);
+ snprintf (temp, sizeof (temp), "%dch Multichannel", c->fmt.channels);
mode = temp;
}
- int samplerate = c->samplerate;
- int bitspersample = c->bps;
+ int samplerate = c->fmt.samplerate;
+ int bitspersample = c->fmt.bps;
songpos = playpos;
// codec_unlock ();