[vlmc-devel] commit: Effect: Don't assume effect was loaded when creating an instance. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Fri Aug 20 00:55:06 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Aug 19 20:41:19 2010 +0200| [760bf6ce31e296e8d7c2f97af9a28fd11d73239e] | committer: Hugo Beauzée-Luyssen 

Effect: Don't assume effect was loaded when creating an instance.

Factory now handles Mixer2 type.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=760bf6ce31e296e8d7c2f97af9a28fd11d73239e
---

 src/EffectsEngine/Effect.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/EffectsEngine/Effect.cpp b/src/EffectsEngine/Effect.cpp
index 1c7dcaf..3f2e318 100644
--- a/src/EffectsEngine/Effect.cpp
+++ b/src/EffectsEngine/Effect.cpp
@@ -22,6 +22,7 @@
 
 #include "Effect.h"
 #include "FilterInstance.h"
+#include "MixerInstance.h"
 
 #include <QtDebug>
 
@@ -142,10 +143,12 @@ EffectInstance*
 Effect::createInstance()
 {
     m_instCount.fetchAndAddAcquire( 1 );
-    switch ( m_type )
+    switch ( type() )
     {
     case Filter:
         return new FilterInstance( this );
+    case Mixer2:
+        return new MixerInstance( this );
     default:
         return NULL;
     }



More information about the Vlmc-devel mailing list