gst-editing-services: ges: modifies emission of the track/ object-removed signal

Thibault Saunier tsaunier at kemper.freedesktop.org
Wed Jan 11 07:04:31 PST 2012


Module: gst-editing-services
Branch: master
Commit: e1d97cfee089b81b7709cb3444c21f5b38c52313
URL:    http://cgit.freedesktop.org/gstreamer/gst-editing-services/commit/?id=e1d97cfee089b81b7709cb3444c21f5b38c52313

Author: Mathieu Duponchelle <seeed at laposte.net>
Date:   Wed Aug 24 12:06:22 2011 +0200

ges: modifies emission of the track/object-removed signal

Make it be emitted right before the track objects is removed so we don't end up
with a TrackObject that has already been freed

---

 ges/ges-track.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ges/ges-track.c b/ges/ges-track.c
index 786f028..71ad5c8 100644
--- a/ges/ges-track.c
+++ b/ges/ges-track.c
@@ -494,11 +494,12 @@ ges_track_remove_object (GESTrack * track, GESTrackObject * object)
   }
 
   ges_track_object_set_track (object, NULL);
-  priv->trackobjects = g_list_remove (priv->trackobjects, object);
 
   g_signal_emit (track, ges_track_signals[TRACK_OBJECT_REMOVED], 0,
       GES_TRACK_OBJECT (object));
 
+  priv->trackobjects = g_list_remove (priv->trackobjects, object);
+
   g_object_unref (object);
 
   return TRUE;



More information about the gstreamer-commits mailing list