timelineobject: Update the nb_effect when releasing a TrackEffect
authorThibault Saunier <thibault.saunier@collabora.com>
Fri, 27 Jan 2012 16:09:08 +0000 (17:09 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 28 Mar 2012 02:33:57 +0000 (22:33 -0400)
ges/ges-timeline-object.c

index 154ecdf5ecc080d421dfca001dd1bd59033444b0..874974ac57bf20d77e0cc583239835b9557237d6 100644 (file)
@@ -647,6 +647,7 @@ ges_timeline_object_release_track_object (GESTimelineObject * object,
 
   if (GES_IS_TRACK_EFFECT (trackobject)) {
     /* emit 'object-removed' */
+    object->priv->nb_effects--;
     g_signal_emit (object, ges_timeline_object_signals[EFFECT_REMOVED], 0,
         GES_TRACK_EFFECT (trackobject));
   } else