[vlmc-devel] commit: EffectSettingValue: Avoid useless realocations. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sat Sep 4 13:00:22 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Sep  3 15:48:41 2010 +0200| [8ace1378009156d9373b780f031cf23c9933bb2d] | committer: Hugo Beauzée-Luyssen 

EffectSettingValue: Avoid useless realocations.

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

 src/EffectsEngine/EffectSettingValue.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/EffectsEngine/EffectSettingValue.h b/src/EffectsEngine/EffectSettingValue.h
index d4d8a3c..3e89b28 100644
--- a/src/EffectsEngine/EffectSettingValue.h
+++ b/src/EffectsEngine/EffectSettingValue.h
@@ -59,6 +59,7 @@ class EffectSettingValue : public SettingValue
             {
                 delete[] m_paramBuff; //Won't hurt if paramBuff is NULL
                 m_paramBuff = new qint8[size];
+                m_buffSize = size;
             }
             memcpy( m_paramBuff, ptr, size );
         }



More information about the Vlmc-devel mailing list