remove extern int now_playing

This commit is contained in:
Andrzej Rybczak
2009-02-14 15:18:13 +01:00
parent 8653232a2a
commit 11622b7ba5
6 changed files with 61 additions and 47 deletions

View File

@@ -74,7 +74,7 @@ void Lyrics::Update()
if (!reload_lyrics)
return;
const MPD::Song &s = myPlaylist->Main()->at(now_playing);
const MPD::Song &s = myPlaylist->NowPlayingSong();
if (!s.GetArtist().empty() && !s.GetTitle().empty())
Get();
else
@@ -133,7 +133,7 @@ void Lyrics::Get()
current_screen = csPlaylist;
wCurrent = myPlaylist->Main();
reload_lyrics = 0;
id = now_playing;
id = myPlaylist->NowPlaying;
}
else
id = ((Menu<MPD::Song> *)wCurrent)->Choice();