diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-15 12:49:13 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-15 12:49:13 +0100 |
commit | 55f8c64a00144aae19270d1b21cd2ce25d9a0dba (patch) | |
tree | 4c6ac86d17d57f3f46302c91086328faf0654fea /plugins/gtkui | |
parent | 0e8083c59d9bc4dc81fd779764469b838f14f8ac (diff) |
added total number of tracks display when player is stopped
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/gtkui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index eac8bdc9..7f29ef4a 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -74,7 +74,7 @@ update_songinfo (void) { float duration = deadbeef->pl_get_item_duration (track); if (deadbeef->playback_isstopped ()) { - snprintf (sbtext_new, sizeof (sbtext_new), "Stopped | %s total playtime", totaltime_str); + snprintf (sbtext_new, sizeof (sbtext_new), "Stopped | %d tracks | %s total playtime", pl_getcount (), totaltime_str); songpos = 0; } else if (track->decoder) { @@ -108,7 +108,7 @@ update_songinfo (void) { } #endif const char *spaused = deadbeef->playback_ispaused () ? "Paused | " : ""; - snprintf (sbtext_new, sizeof (sbtext_new), "%s%s %s| %dHz | %d bit | %s | %d:%02d / %s | %d songs | %s total playtime", spaused, track->filetype ? track->filetype:"-", sbitrate, samplerate, bitspersample, mode, minpos, secpos, t, pl_getcount (), totaltime_str); + snprintf (sbtext_new, sizeof (sbtext_new), "%s%s %s| %dHz | %d bit | %s | %d:%02d / %s | %d tracks | %s total playtime", spaused, track->filetype ? track->filetype:"-", sbitrate, samplerate, bitspersample, mode, minpos, secpos, t, pl_getcount (), totaltime_str); } if (strcmp (sbtext_new, sb_text)) { |