aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/rgscan/rgscandialog.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-02-10 11:27:33 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-02-10 11:27:33 +0000
commite94084ab46412950b49f82805a43c378dd365ac9 (patch)
tree4bd83b02686a9521c945a485007b2adfb62fa00f /src/plugins/General/rgscan/rgscandialog.h
parent32160275fb287bd1f346a8f3ceabed2732c184fe (diff)
downloadqmmp-e94084ab46412950b49f82805a43c378dd365ac9.tar.gz
qmmp-e94084ab46412950b49f82805a43c378dd365ac9.tar.bz2
qmmp-e94084ab46412950b49f82805a43c378dd365ac9.zip
fixed support of taglib versions less than 1.10
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6127 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/rgscan/rgscandialog.h')
-rw-r--r--src/plugins/General/rgscan/rgscandialog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.h b/src/plugins/General/rgscan/rgscandialog.h
index 6b2d23afa..1500796c2 100644
--- a/src/plugins/General/rgscan/rgscandialog.h
+++ b/src/plugins/General/rgscan/rgscandialog.h
@@ -24,6 +24,7 @@
#include <QDialog>
#include <QStringList>
#include <qmmp/qmmp.h>
+#include <taglib/taglib.h>
#include <taglib/tstring.h>
#include "ui_rgscandialog.h"
@@ -47,10 +48,12 @@ namespace TagLib
{
class XiphComment;
}
+#if (TAGLIB_MAJOR_VERSION > 1) || ((TAGLIB_MAJOR_VERSION == 1) && (TAGLIB_MINOR_VERSION >= 10))
namespace MP4
{
class Tag;
}
+#endif
}
/**
@@ -80,7 +83,9 @@ private:
void writeAPETag(TagLib::APE::Tag *tag, ReplayGainInfoItem *item);
void writeID3v2Tag(TagLib::ID3v2::Tag *tag, ReplayGainInfoItem *item);
void writeVorbisComment(TagLib::Ogg::XiphComment *tag, ReplayGainInfoItem *item);
+#if (TAGLIB_MAJOR_VERSION > 1) || ((TAGLIB_MAJOR_VERSION == 1) && (TAGLIB_MINOR_VERSION >= 10))
void writeMP4Tag(TagLib::MP4::Tag *tag, ReplayGainInfoItem *item);
+#endif
Ui::RGScanDialog m_ui;
QList<RGScanner *> m_scanners;
QList<ReplayGainInfoItem*> m_replayGainItemList;