some MPD::Song improvements and syntax simplifications

This commit is contained in:
Andrzej Rybczak
2009-07-05 14:13:18 +02:00
parent df051bf674
commit f60cc71b91
11 changed files with 65 additions and 62 deletions

View File

@@ -335,7 +335,7 @@ void Info::PrepareSong(MPD::Song &s)
{
# ifdef HAVE_TAGLIB_H
std::string path_to_file;
if (s.IsFromDB())
if (s.isFromDB())
path_to_file += Config.mpd_music_dir;
path_to_file += s.GetFile();
TagLib::FileRef f(path_to_file.c_str());