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:
Lukáš Lalinský
2010-04-02 12:14:32 +00:00
parent 2ef8fc5118
commit 3943668603
4 changed files with 22 additions and 3 deletions

View File

@ -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;
};