Skip to content
This repository
Browse code

musicdb: fix retrieval of compilation flag for songs

  • Loading branch information...
commit f8b9eea7ab6fd3d0b9f5336b9060eb2f7ac1d33f 1 parent 35e157a
Sascha Montellese authored November 27, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/music/MusicDatabase.cpp
2  xbmc/music/MusicDatabase.cpp
@@ -963,7 +963,7 @@ void CMusicDatabase::GetFileItemFromDataset(const dbiplus::sql_record* const rec
963 963
   CStdString strRealPath;
964 964
   URIUtils::AddFileToFolder(record->at(song_strPath).get_asString(), record->at(song_strFileName).get_asString(), strRealPath);
965 965
   item->GetMusicInfoTag()->SetURL(strRealPath);
966  
-  item->GetMusicInfoTag()->SetCompilation(m_pDS->fv(song_bCompilation).get_asInt() == 1);
  966
+  item->GetMusicInfoTag()->SetCompilation(record->at(song_bCompilation).get_asInt() == 1);
967 967
   item->GetMusicInfoTag()->SetLoaded(true);
968 968
   // Get filename with full path
969 969
   if (strMusicDBbasePath.IsEmpty())

0 notes on commit f8b9eea

Please sign in to comment.
Something went wrong with that request. Please try again.