fix compilation --without-taglib

This commit is contained in:
Andrzej Rybczak
2012-08-29 09:07:20 +02:00
parent ddeec3aea0
commit 4cb0e2232a
22 changed files with 609 additions and 247 deletions

View File

@@ -1232,6 +1232,19 @@ void MPD::Connection::GetDirectories(const std::string &path, TagList &v)
GoIdle();
}
void MPD::Connection::GetSongs(const std::string &path, SongList &v)
{
if (!itsConnection)
return;
assert(!isCommandsListEnabled);
GoBusy();
mpd_send_list_meta(itsConnection, path.c_str());
while (mpd_song *s = mpd_recv_song(itsConnection))
v.push_back(Song(s));
mpd_response_finish(itsConnection);
GoIdle();
}
void MPD::Connection::GetOutputs(std::function<void(Output &&)> f)
{
if (!itsConnection)