[Kdenlive-devel] [PATCH 14/14] definitions.h: initialize TransitionInfo

Mikko Rapeli mikko.rapeli at iki.fi
Sun Jul 22 18:28:22 UTC 2012


Just in case someone uses the class/struct without setting all of the
variables.
---
 src/definitions.h |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/definitions.h b/src/definitions.h
index 3d8ce6a..b663fc6 100644
--- a/src/definitions.h
+++ b/src/definitions.h
@@ -104,7 +104,8 @@ public:
     ItemInfo() : track(0) {};
 };
 
-struct TransitionInfo {
+class TransitionInfo {
+public:
 /** startPos is the position where the clip starts on the track */
     GenTime startPos;
     /** endPos is the duration where the clip ends on the track */
@@ -115,6 +116,10 @@ struct TransitionInfo {
     int a_track;
     /** Does the user request for a special a_track */
     bool forceTrack;
+    TransitionInfo() :
+        b_track(0),
+        a_track(0),
+        forceTrack(0) {};
 };
 
 class MltVideoProfile {
-- 
1.7.10.4





More information about the Kdenlive mailing list