summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gtkui.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-11 22:08:31 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-11 22:19:27 +0100
commitf6fdf11dcbc98fa1477bcfc5ae7317a5b2e75ede (patch)
treeabee6c4200df2b4e924da4ef54f6bcae0c77a62f /plugins/gtkui/gtkui.c
parent92a8bcfc52f15022e3e7c0bdbc82f12ac327ecca (diff)
decoder plugin reentrancy WIP (mp3 works)
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r--plugins/gtkui/gtkui.c8
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 ();