Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

musicdb: fix retrieval of compilation flag for songs

  • Loading branch information...
commit f8b9eea7ab6fd3d0b9f5336b9060eb2f7ac1d33f 1 parent 35e157a
Sascha Montellese Montellese authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/music/MusicDatabase.cpp
2  xbmc/music/MusicDatabase.cpp
View
@@ -963,7 +963,7 @@ void CMusicDatabase::GetFileItemFromDataset(const dbiplus::sql_record* const rec
CStdString strRealPath;
URIUtils::AddFileToFolder(record->at(song_strPath).get_asString(), record->at(song_strFileName).get_asString(), strRealPath);
item->GetMusicInfoTag()->SetURL(strRealPath);
- item->GetMusicInfoTag()->SetCompilation(m_pDS->fv(song_bCompilation).get_asInt() == 1);
+ item->GetMusicInfoTag()->SetCompilation(record->at(song_bCompilation).get_asInt() == 1);
item->GetMusicInfoTag()->SetLoaded(true);
// Get filename with full path
if (strMusicDBbasePath.IsEmpty())
Please sign in to comment.
Something went wrong with that request. Please try again.