diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-15 12:19:14 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-15 12:19:14 +0100 |
commit | 45d152a8953bf24860a3d54444cbf52506c7b100 (patch) | |
tree | 4eec8a055b1ebc9131eaca9c72cc2474e3d1f88a /main.c | |
parent | a69256236245702d3758a6e73b044b4907486457 (diff) |
added total number of tracks display when player is stopped
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,7 +97,7 @@ update_songinfo (void) { snprintf (totaltime_str, sizeof (totaltime_str), "%d days %d:%02d:%02d", daystotal, hourtotal, mintotal, sectotal); if (p_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 (str_playing_song.decoder) { @@ -131,7 +131,7 @@ update_songinfo (void) { } #endif const char *spaused = p_ispaused () ? "Paused | " : ""; - snprintf (sbtext_new, sizeof (sbtext_new), "%s%s %s| %dHz | %d bit | %s | %d:%02d / %s | %d songs | %s total playtime", spaused, str_playing_song.filetype ? str_playing_song.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, str_playing_song.filetype ? str_playing_song.filetype:"-", sbitrate, samplerate, bitspersample, mode, minpos, secpos, t, pl_getcount (), totaltime_str); } if (strcmp (sbtext_new, sb_text)) { |