aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-05-23 10:21:32 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-05-23 10:21:32 +0000
commit3f0d75b4da4165f3554fadb1362ade2714f2820a (patch)
tree38b7e9192158cbffad2857ae4e66b9649c8a84ae /src/plugins
parentc7b5e335da81a9176db7ec2385dfb3b21183e517 (diff)
downloadqmmp-3f0d75b4da4165f3554fadb1362ade2714f2820a.tar.gz
qmmp-3f0d75b4da4165f3554fadb1362ade2714f2820a.tar.bz2
qmmp-3f0d75b4da4165f3554fadb1362ade2714f2820a.zip
fixed build without mpg123
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10041 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Input/mpeg/decodermpegfactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Input/mpeg/decodermpegfactory.cpp b/src/plugins/Input/mpeg/decodermpegfactory.cpp
index 5cde2dce4..359539fe7 100644
--- a/src/plugins/Input/mpeg/decodermpegfactory.cpp
+++ b/src/plugins/Input/mpeg/decodermpegfactory.cpp
@@ -204,7 +204,9 @@ Decoder *DecoderMPEGFactory::create(const QString &, QIODevice *input)
d = new DecoderMAD(crc, input);
}
#elif defined(WITH_MAD)
- d = new DecoderMAD(input);
+ QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
+ bool crc = settings.value("MPEG/enable_crc", false).toBool();
+ d = new DecoderMAD(crc, input);
#elif defined(WITH_MPG123)
d = new DecoderMPG123(input);
#endif