Permalink
Browse files

FIX: Taglib: Problem reading embedded covers

  • Loading branch information...
1 parent f674404 commit ce3f4ce702fbeec6f4d4769651cea9b288b6d604 @koying koying committed Oct 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 xbmc/music/tags/TagLoaderTagLib.cpp
View
3 xbmc/music/tags/TagLoaderTagLib.cpp
@@ -365,10 +365,9 @@ bool CTagLoaderTagLib::ParseID3v2Tag(ID3v2::Tag *id3v2, EmbeddedArt *art, CMusic
{
string mime = pictures[i]->mimeType().toCString();
TagLib::uint size = pictures[i]->picture().size();
- uint8_t* data = (uint8_t*) pictures[i]->picture().data();
tag.SetCoverArtInfo(size, mime);
if (art)
- art->set(data, size, mime);
+ art->set((const uint8_t*)pictures[i]->picture().data(), size, mime);
// Stop after we find the first picture for now.
break;

0 comments on commit ce3f4ce

Please sign in to comment.