status: follow lyrics of proper song if consume mode is on

http://bugs.musicpd.org/view.php?id=4082
This commit is contained in:
Andrzej Rybczak
2014-10-18 14:01:43 +02:00
parent d9cf50b946
commit 683efb5a43
6 changed files with 53 additions and 28 deletions

View File

@@ -308,6 +308,16 @@ void Connection::GetPlaylistChanges(unsigned version, SongConsumer f)
checkErrors();
}
Song Connection::GetCurrentSong()
{
prechecksNoCommandsList();
mpd_send_current_song(m_connection);
mpd_song *s = mpd_recv_song(m_connection);
mpd_response_finish(m_connection);
checkErrors();
return Song(s);
}
Song Connection::GetSong(const std::string &path)
{
prechecksNoCommandsList();