make ncmpcpp use external libmpdclient (--without-taglib and --without-iconv)

This commit is contained in:
Andrzej Rybczak
2009-09-22 22:33:46 +02:00
parent aad9146397
commit dec7bd9c0e
17 changed files with 495 additions and 3377 deletions

View File

@@ -329,8 +329,8 @@ void Browser::GetLocalDirectory(ItemList &v, const std::string &directory, bool
else if (hasSupportedExtension(file->d_name))
{
new_item.type = itSong;
mpd_Song *s = mpd_newSong();
s->file = str_pool_get(full_path.c_str());
mpd_pair file_pair = { "file", strdup(full_path.c_str()) };
mpd_song *s = mpd_song_begin(&file_pair);
# ifdef HAVE_TAGLIB_H
if (!recursively)
TagEditor::ReadTags(s);