fix compilation --with-taglib

This commit is contained in:
Andrzej Rybczak
2009-09-22 23:12:19 +02:00
parent dec7bd9c0e
commit 24627d8493
5 changed files with 25 additions and 31 deletions

View File

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