Commit b5e0e241 authored by Rafaël Carré's avatar Rafaël Carré Committed by Felix Paul Kühne

contrib: taglib: use original patch present in taglib.git

(cherry picked from commit 40f0a08c4667a3b6497a1cdb2d57a081d4210226)
parent cc80d91d
diff --git a/taglib/mpeg/id3v2/id3v2tag.cpp b/taglib/mpeg/id3v2/id3v2tag.cpp From 7cc36db7606dfc85d2e344d35c4e26fe8f698bdc Mon Sep 17 00:00:00 2001
index c6fe7b7..ebb1969 100644 From: Jonathan Liu <net147@gmail.com>
--- a/taglib/mpeg/id3v2/id3v2tag.cpp Date: Sat, 6 Aug 2011 11:05:11 +0200
+++ b/taglib/mpeg/id3v2/id3v2tag.cpp Subject: [PATCH] Use the default frame factory when it's necessary to parse
@@ -652,7 +652,9 @@ void ID3v2::Tag::parse(const ByteVector &origData) ID3v2 tags in APE files
return;
} https://bugs.kde.org/show_bug.cgi?id=278773
---
- Frame *frame = d->factory->createFrame(data.mid(frameDataPosition), taglib/ape/apeproperties.cpp | 2 +-
+ Frame *frame = NULL; 1 file changed, 1 insertion(+), 1 deletion(-)
+ if (d->factory)
+ frame = d->factory->createFrame(data.mid(frameDataPosition), diff --git a/taglib/ape/apeproperties.cpp b/taglib/ape/apeproperties.cpp
&d->header); index 3154d10..aab9d25 100644
--- a/taglib/ape/apeproperties.cpp
if(!frame) +++ b/taglib/ape/apeproperties.cpp
@@ -137,7 +137,7 @@ long APE::Properties::findDescriptor()
long ID3v2OriginalSize = 0;
bool hasID3v2 = false;
if(ID3v2Location >= 0) {
- ID3v2::Tag tag(d->file, ID3v2Location, 0);
+ ID3v2::Tag tag(d->file, ID3v2Location);
ID3v2OriginalSize = tag.header()->completeTagSize();
if(tag.header()->tagSize() > 0)
hasID3v2 = true;
--
1.7.9.5
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment