summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1870dd3)
raw | patch | inline | side by side (parent: 1870dd3)
author | Max Kellermann <max@duempel.org> | |
Tue, 23 Sep 2008 10:08:14 +0000 (12:08 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 23 Sep 2008 10:08:14 +0000 (12:08 +0200) |
The variable current.song was never set, thus the cache did not work.
Don't reset it in screen_lyrics_clear() (which is called from
screen_lyrics_set()).
Don't reset it in screen_lyrics_clear() (which is called from
screen_lyrics_set()).
src/screen_lyrics.c | patch | blob | history |
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index c2c7807235fd628c065ce186db429f250a2f5a11..cfc65893981ac9c119f2c93e88f09684ec17f5dc 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
assert(current.loader == NULL ||
lyrics_result(current.loader) == LYRICS_SUCCESS);
- current.song = NULL;
-
for (i = 0; i < current.lines->len; ++i)
g_free(g_ptr_array_index(current.lines, i));
screen_lyrics_abort();
screen_lyrics_clear();
+ current.song = song;
+
strfsong(buffer, sizeof(buffer), "%artist%", song);
current.artist = g_strdup(buffer);