diff options
author | Memphiz <memphis@machzwo.de> | 2012-02-20 17:49:53 +0100 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2012-02-20 17:49:53 +0100 |
commit | 672a6dc9958c6416081b0071aab97e335a532ddd (patch) | |
tree | ca4883b5f9ae43c1d03d30f046042b5cade1da0b /lib/libid3tag | |
parent | 28327d023537aa6a03e596fb73c02efcd76c6097 (diff) |
[fix] - revert c0855cb because its not needed anymore
Diffstat (limited to 'lib/libid3tag')
-rw-r--r-- | lib/libid3tag/libid3tag/metadata.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/libid3tag/libid3tag/metadata.c b/lib/libid3tag/libid3tag/metadata.c index bfc15f1a69..7dee1e0f13 100644 --- a/lib/libid3tag/libid3tag/metadata.c +++ b/lib/libid3tag/libid3tag/metadata.c @@ -299,29 +299,6 @@ const id3_ucs4_t* id3_metadata_getcomment(const struct id3_tag* tag, enum id3_fi union id3_field const *field; struct id3_frame const *frame; int commentNumber = 0; -//on ios use the "old" version without the bugfix from https://github.com/xbmc/xbmc/commit/e09cb07 -//because it somehow exposes a bug which leads to unreproducable crashs on id3v2 tags -#ifdef TARGET_DARWIN_IOS - const id3_ucs4_t* ucs4 = 0; - // return the first non-empty comment - do - { - frame = id3_tag_findframe(tag, ID3_FRAME_COMMENT, commentNumber++); - if (frame == 0) - return id3_ucs4_empty; - - *encoding = id3_field_gettextencoding(id3_frame_field(frame, 0)); - - field = id3_frame_field(frame, 3); - if (field == 0) - return id3_ucs4_empty; - - ucs4 = id3_field_getfullstring(field); - if (!ucs4) - return id3_ucs4_empty; - } - while (*ucs4 == 0); -#else const id3_ucs4_t* ucs4 = 0; // return the first non-empty comment @@ -362,9 +339,7 @@ const id3_ucs4_t* id3_metadata_getcomment(const struct id3_tag* tag, enum id3_fi } } while (frame); -#endif//else TARGET_DARWIN_IOS return ucs4; -// return id3_ucs4_empty; } int id3_metadata_setcomment(struct id3_tag* tag, id3_ucs4_t* value) |