Skip to content
This repository
Browse code

Merge pull request #1554 from koying/taglibcover

FIX: Taglib: Problem reading embedded covers
  • Loading branch information...
commit 17cf5e46cf807e2f661ba94c7213894f62c34ccc 2 parents 6e71862 + ce3f4ce
night199uk authored October 07, 2012

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

  1. 3  xbmc/music/tags/TagLoaderTagLib.cpp
3  xbmc/music/tags/TagLoaderTagLib.cpp
@@ -365,10 +365,9 @@ bool CTagLoaderTagLib::ParseID3v2Tag(ID3v2::Tag *id3v2, EmbeddedArt *art, CMusic
365 365
     {
366 366
       string      mime =             pictures[i]->mimeType().toCString();
367 367
       TagLib::uint size =            pictures[i]->picture().size();
368  
-      uint8_t*    data  = (uint8_t*) pictures[i]->picture().data();
369 368
       tag.SetCoverArtInfo(size, mime);
370 369
       if (art)
371  
-        art->set(data, size, mime);
  370
+        art->set((const uint8_t*)pictures[i]->picture().data(), size, mime);
372 371
       
373 372
       // Stop after we find the first picture for now.
374 373
       break;

0 notes on commit 17cf5e4

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