ges/ges-track-transition.{c,h}: add fields for audio interpolation to obj
authorBrandon Lewis <brandon.lewis@collabora.co.uk>
Mon, 31 May 2010 13:38:14 +0000 (15:38 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 9 Jun 2010 09:28:09 +0000 (11:28 +0200)
ges/ges-track-transition.c
ges/ges-track-transition.h

index f80e3fc..e78b859 100644 (file)
@@ -96,17 +96,29 @@ ges_track_transition_dispose (GObject * object)
   if (self->vcontroller) {
     g_object_unref (self->vcontroller);
     self->vcontroller = NULL;
-    /* is this referenced by the controller ? */
+    /* is this referenec owned by someone other than us? */
     self->vcontrol_source = NULL;
   }
 
+  if (self->a_acontroller) {
+    g_object_unref (self->a_acontroller);
+    self->a_acontroller = NULL;
+    self->a_acontrol_source = NULL;
+  }
+
+  if (self->a_bcontroller) {
+    g_object_unref (self->a_acontroller);
+    self->a_bcontroller = NULL;
+    self->a_bcontrol_source = NULL;
+  }
+
   G_OBJECT_CLASS (ges_track_transition_parent_class)->dispose (object);
 }
 
 static void
 ges_track_transition_finalize (GObject * object)
 {
-  G_OBJECT_CLASS (ges_track_transition_parent_class)->dispose (object);
+  G_OBJECT_CLASS (ges_track_transition_parent_class)->finalize (object);
 }
 
 static GObject *
@@ -258,8 +270,11 @@ ges_track_transition_init (GESTrackTransition * self)
   self->vstart_value = 0.0;
   self->vend_value = 0.0;
 
-  self->acontroller = NULL;
-  self->acontrol_source = NULL;
+  self->a_acontroller = NULL;
+  self->a_acontrol_source = NULL;
+
+  self->a_bcontroller = NULL;
+  self->a_bcontrol_source = NULL;
 }
 
 GESTrackTransition *
index 6f6d562..716db09 100644 (file)
@@ -59,9 +59,11 @@ struct _GESTrackTransition
   gdouble                       vstart_value;
   gdouble                       vend_value;
 
-  GstController                 *acontroller;
-  GstInterpolationControlSource *acontrol_source;
+  GstController                 *a_acontroller;
+  GstInterpolationControlSource *a_acontrol_source;
 
+  GstController                 *a_bcontroller;
+  GstInterpolationControlSource *a_bcontrol_source;
 };
 
 struct _GESTrackTransitionClass {