aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-06-20 11:43:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-06-20 11:43:54 +0000
commit7f4352dd9796ace45eaaee3b065bfaeb285eb363 (patch)
tree70fe4be508df633f0cd421cf3f34ed4bc0f0e11c
parent6fe2082c96b661c48ef904f55e553ccf34e2c4ab (diff)
downloadqmmp-7f4352dd9796ace45eaaee3b065bfaeb285eb363.tar.gz
qmmp-7f4352dd9796ace45eaaee3b065bfaeb285eb363.tar.bz2
qmmp-7f4352dd9796ace45eaaee3b065bfaeb285eb363.zip
fixed conflicts with audio effects, fixed build (Closes issue 335)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1782 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/Input/CMakeLists.txt4
-rw-r--r--src/qmmp/qmmpaudioengine.cpp9
2 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/Input/CMakeLists.txt b/src/plugins/Input/CMakeLists.txt
index 2d2ca0a49..fee5e2e32 100644
--- a/src/plugins/Input/CMakeLists.txt
+++ b/src/plugins/Input/CMakeLists.txt
@@ -47,9 +47,9 @@ IF(USE_MODPLUG)
add_subdirectory(modplug)
ENDIF(USE_MODPLUG)
-IF(USE_AAC)
+IF(USE_AAC AND TAGLIB_FOUND)
add_subdirectory(aac)
-ENDIF(USE_AAC)
+ENDIF(USE_AAC AND TAGLIB_FOUND)
IF(USE_CUE)
add_subdirectory(cue)
diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp
index ea84f7f75..bc5f91466 100644
--- a/src/qmmp/qmmpaudioengine.cpp
+++ b/src/qmmp/qmmpaudioengine.cpp
@@ -175,6 +175,15 @@ void QmmpAudioEngine::setEQEnabled(bool on)
void QmmpAudioEngine::addEffect(EffectFactory *factory)
{
+ foreach(Effect *effect, m_effects)
+ {
+ if(effect->factory() == factory)
+ {
+ qWarning("QmmpAudioEngine: effect %s already exists",
+ qPrintable(factory->properties().shortName));
+ return;
+ }
+ }
if(m_output && m_output->isRunning())
{
Effect *effect = factory->create();