mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Merge pull request #781 from claudiuslollarius/taglib2
Fixed incorrect handling of MP4 tags when using wstrings
This commit is contained in:
commit
4328f934c8
@ -23,8 +23,6 @@
|
||||
* http://www.mozilla.org/MPL/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "taglib.h"
|
||||
#include "tdebug.h"
|
||||
#include "tsmartptr.h"
|
||||
|
@ -835,16 +835,16 @@ MP4::Tag::setPictures(const PictureMap &l)
|
||||
++pictureListIt) {
|
||||
Picture picture = *pictureListIt;
|
||||
CoverArt::Format format;
|
||||
const char *mime = picture.mime().toCString();
|
||||
if(std::strcmp("image/", mime) == 0)
|
||||
String mime = picture.mime();
|
||||
if(String("image/") == mime)
|
||||
format = CoverArt::Unknown;
|
||||
else if(std::strcmp("image/bmp", mime) == 0)
|
||||
else if(String("image/bmp") == mime)
|
||||
format = CoverArt::BMP;
|
||||
else if(std::strcmp("image/png", mime) == 0)
|
||||
else if(String("image/png") == mime)
|
||||
format = CoverArt::PNG;
|
||||
else if(std::strcmp("image/gif", mime) == 0)
|
||||
else if(String("image/gif") == mime)
|
||||
format = CoverArt::GIF;
|
||||
else if(std::strcmp("image/jpeg", mime) == 0)
|
||||
else if(String("image/jpeg") == mime)
|
||||
format = CoverArt::JPEG;
|
||||
else
|
||||
format = CoverArt::Unknown;
|
||||
|
Loading…
Reference in New Issue
Block a user