[vlmc-devel] commit: EffectHelper: Update length when target changes. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Fri Sep 10 19:24:54 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Sep 10 17:31:01 2010 +0200| [20868819fe3403e8351d325bd2cb7c59cc06ccae] | committer: Hugo Beauzée-Luyssen
EffectHelper: Update length when target changes.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=20868819fe3403e8351d325bd2cb7c59cc06ccae
---
src/EffectsEngine/EffectHelper.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/EffectsEngine/EffectHelper.cpp b/src/EffectsEngine/EffectHelper.cpp
index 725ded2..c16b61f 100644
--- a/src/EffectsEngine/EffectHelper.cpp
+++ b/src/EffectsEngine/EffectHelper.cpp
@@ -21,6 +21,7 @@
*****************************************************************************/
#include "EffectHelper.h"
+#include "EffectUser.h"
EffectHelper::EffectHelper( EffectInstance *effectInstance, qint64 begin, qint64 end,
const QString &uuid ) :
@@ -52,4 +53,9 @@ void
EffectHelper::setTarget( const EffectUser *target )
{
m_target = target;
+ m_begin = 0;
+ if ( target != NULL )
+ m_end = target->length();
+ else
+ m_end = -1;
}
More information about the Vlmc-devel
mailing list