diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 8f7c23d4436448c3950e4cb46e26a0e91580ed42..5714258dbc3d7f5d8958d2edd951188e9befda2c 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
}
if (current.song != NULL) {
- mpd_freeSong(current.song);
+ mpd_song_free(current.song);
current.song = NULL;
}
}
screen_lyrics_abort();
screen_text_clear(&text);
- current.song = mpd_songDup(song);
+ current.song = mpd_song_dup(song);
strfsong(buffer, sizeof(buffer), "%artist%", song);
current.artist = g_strdup(buffer);
if (next_song != NULL &&
(current.song == NULL ||
- strcmp(next_song->file, current.song->file) != 0))
+ strcmp(mpd_song_get_uri(next_song),
+ mpd_song_get_uri(current.song)) != 0))
screen_lyrics_load(next_song);
if (next_song != c->song)
- mpd_freeSong(next_song);
+ mpd_song_free(next_song);
next_song = NULL;
}
if (next_song != NULL &&
(current.song == NULL ||
- strcmp(next_song->file, current.song->file) != 0))
+ strcmp(mpd_song_get_uri(next_song),
+ mpd_song_get_uri(current.song)) != 0))
screen_lyrics_load(next_song);
next_song = NULL;
assert(song != NULL);
follow = f;
- next_song = mpd_songDup(song);
+ next_song = mpd_song_dup(song);
screen_switch(&screen_lyrics, c);
}