Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1554 from koying/taglibcover

FIX: Taglib: Problem reading embedded covers
  • Loading branch information...
commit 17cf5e46cf807e2f661ba94c7213894f62c34ccc 2 parents 6e71862 + ce3f4ce
@night199uk night199uk authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.