mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
Make TAGLIB #if checks backwards compatible
This commit is contained in:
@@ -142,8 +142,10 @@ MusicScanner::MusicScanner( MusicScanner::ScanMode scanMode, const QStringList&
|
||||
m_ext2mime.insert( "mp3", TomahawkUtils::extensionToMimetype( "mp3" ) );
|
||||
m_ext2mime.insert( "ogg", TomahawkUtils::extensionToMimetype( "ogg" ) );
|
||||
m_ext2mime.insert( "oga", TomahawkUtils::extensionToMimetype( "oga" ) );
|
||||
#if defined(TAGLIB_MAJOR_VERSION) && defined(TAGLIB_MINOR_VERSION)
|
||||
#if TAGLIB_MAJOR_VERSION >= 1 && TAGLIB_MINOR_VERSION >= 9
|
||||
m_ext2mime.insert( "opus", TomahawkUtils::extensionToMimetype( "opus" ) );
|
||||
#endif
|
||||
#endif
|
||||
m_ext2mime.insert( "mpc", TomahawkUtils::extensionToMimetype( "mpc" ) );
|
||||
m_ext2mime.insert( "wma", TomahawkUtils::extensionToMimetype( "wma" ) );
|
||||
|
@@ -28,8 +28,10 @@
|
||||
#include <taglib/xiphcomment.h>
|
||||
#include <taglib/vorbisfile.h>
|
||||
#include <taglib/oggflacfile.h>
|
||||
#if TAGLIB_MAJOR_VERSION >= 1 && TAGLIB_MINOR_VERSION >= 9
|
||||
#include <taglib/opusfile.h>
|
||||
#if defined(TAGLIB_MAJOR_VERSION) && defined(TAGLIB_MINOR_VERSION)
|
||||
#if TAGLIB_MAJOR_VERSION >= 1 && TAGLIB_MINOR_VERSION >= 9
|
||||
#include <taglib/opusfile.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <taglib/flacfile.h>
|
||||
#include <taglib/speexfile.h>
|
||||
|
@@ -38,6 +38,9 @@
|
||||
#include <quazip/quazip.h>
|
||||
#include <quazip/quazipfile.h>
|
||||
|
||||
// We need this for the version info (if available)
|
||||
#include <taglib/taglib.h>
|
||||
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkProxy>
|
||||
@@ -322,8 +325,10 @@ extensionToMimetype( const QString& extension )
|
||||
s_ext2mime.insert( "mp3", "audio/mpeg" );
|
||||
s_ext2mime.insert( "ogg", "application/ogg" );
|
||||
s_ext2mime.insert( "oga", "application/ogg" );
|
||||
#if defined(TAGLIB_MAJOR_VERSION) && defined(TAGLIB_MINOR_VERSION)
|
||||
#if TAGLIB_MAJOR_VERSION >= 1 && TAGLIB_MINOR_VERSION >= 9
|
||||
s_ext2mime.insert( "opus", "application/opus" );
|
||||
#endif
|
||||
#endif
|
||||
s_ext2mime.insert( "mpc", "audio/x-musepack" );
|
||||
s_ext2mime.insert( "wma", "audio/x-ms-wma" );
|
||||
|
Reference in New Issue
Block a user