mirror of
https://github.com/taglib/taglib.git
synced 2025-11-15 22:23:05 -05:00
Add a constructor that takes an ID3v2::FrameFactory.
CCMAIL:Jonathan Giannuzzi <psyduck@altern.org> git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@299846 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -167,8 +167,8 @@ namespace TagLib {
|
||||
class MPEG::File::FilePrivate
|
||||
{
|
||||
public:
|
||||
FilePrivate() :
|
||||
ID3v2FrameFactory(ID3v2::FrameFactory::instance()),
|
||||
FilePrivate(ID3v2::FrameFactory *frameFactory = ID3v2::FrameFactory::instance()) :
|
||||
ID3v2FrameFactory(frameFactory),
|
||||
ID3v2Tag(0),
|
||||
ID3v2Location(-1),
|
||||
ID3v2OriginalSize(0),
|
||||
@ -219,6 +219,17 @@ MPEG::File::File(const char *file, bool readProperties,
|
||||
}
|
||||
}
|
||||
|
||||
MPEG::File::File(const char *file, ID3v2::FrameFactory *frameFactory,
|
||||
bool readProperties, Properties::ReadStyle propertiesStyle) :
|
||||
TagLib::File(file)
|
||||
{
|
||||
d = new FilePrivate(frameFactory);
|
||||
if(isOpen()) {
|
||||
d->tag = new MPEGTag(this);
|
||||
read(readProperties, propertiesStyle);
|
||||
}
|
||||
}
|
||||
|
||||
MPEG::File::~File()
|
||||
{
|
||||
delete d;
|
||||
|
||||
Reference in New Issue
Block a user