mirror of
https://github.com/taglib/taglib.git
synced 2025-07-14 02:54:27 -04:00
Ignore trailing non-data atoms when parsing MP4 covr atoms
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1110209 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -38,14 +38,16 @@ inline void deleteFile(const string &filename)
|
||||
class ScopedFileCopy
|
||||
{
|
||||
public:
|
||||
ScopedFileCopy(const string &filename, const string &ext)
|
||||
ScopedFileCopy(const string &filename, const string &ext, bool deleteFile=true)
|
||||
{
|
||||
m_deleteFile = deleteFile;
|
||||
m_filename = copyFile(filename, ext);
|
||||
}
|
||||
|
||||
~ScopedFileCopy()
|
||||
{
|
||||
deleteFile(m_filename);
|
||||
if(m_deleteFile)
|
||||
deleteFile(m_filename);
|
||||
}
|
||||
|
||||
string fileName()
|
||||
@ -54,5 +56,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_deleteFile;
|
||||
string m_filename;
|
||||
};
|
||||
|
Reference in New Issue
Block a user