summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8da666b)
raw | patch | inline | side by side (parent: 8da666b)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 19 Nov 2011 01:33:43 +0000 (02:33 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 2 Dec 2011 11:08:34 +0000 (12:08 +0100) |
(calling mpd_status_get_kbit_rate twice in a row shouldn't impact
performance, it's declared as "pure")
performance, it's declared as "pure")
src/screen_song.c | patch | blob | history |
diff --git a/src/screen_song.c b/src/screen_song.c
index e738fc2914f9eb4f57faec1220ea54e38ff9d82b..9154f9ab1379ffe9b4a48b7dc6319e1a0511c655 100644 (file)
--- a/src/screen_song.c
+++ b/src/screen_song.c
screen_song_append(_("Path"), mpd_song_get_uri(song),
max_tag_label_width);
if (mpdclient_is_playing(c) && c->song != NULL &&
- strcmp(mpd_song_get_uri(c->song), mpd_song_get_uri(song)) == 0) {
+ strcmp(mpd_song_get_uri(c->song), mpd_song_get_uri(song)) == 0 &&
+ mpd_status_get_kbit_rate(c->status)) {
char buf[16];
g_snprintf(buf, sizeof(buf), _("%d kbps"),
mpd_status_get_kbit_rate(c->status));