diff options
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r-- | plugins/gtkui/gtkui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 4fa1cddb..69dec742 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -83,7 +83,7 @@ update_songinfo (gpointer ctx) { } else { // codec_lock (); - DB_decoder_t *c = deadbeef->streamer_get_current_decoder (); + DB_fileinfo_t *c = deadbeef->streamer_get_current_decoder (); if (c) { float playpos = deadbeef->streamer_get_playpos (); int minpos = playpos / 60; @@ -91,9 +91,9 @@ update_songinfo (gpointer ctx) { int mindur = duration / 60; int secdur = duration - mindur * 60; - const char *mode = c->info.channels == 1 ? "Mono" : "Stereo"; - int samplerate = c->info.samplerate; - int bitspersample = c->info.bps; + const char *mode = c->channels == 1 ? "Mono" : "Stereo"; + int samplerate = c->samplerate; + int bitspersample = c->bps; songpos = playpos; // codec_unlock (); |