ges/ges-track-transition.c: give gnloperations a unique name
authorBrandon Lewis <brandon.lewis@collabora.co.uk>
Thu, 27 May 2010 22:12:45 +0000 (00:12 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 9 Jun 2010 09:28:09 +0000 (11:28 +0200)
ges/ges-track-transition.c

index c8f0a031e0ac4d879c636fa2b80949df835a92bc..678a216db018866f2c4541d18ae61fdc3e15752b 100644 (file)
@@ -141,8 +141,12 @@ ges_track_transition_create_gnl_object (GESTrackObject * object)
 {
   GESTrackTransition *self = GES_TRACK_TRANSITION (object);
 
-  object->gnlobject = gst_element_factory_make ("gnloperation",
-      "transition-operation");
+  static gint tnum = 0;
+
+  gchar *name = g_strdup_printf ("transition-operation%d", tnum++);
+  object->gnlobject = gst_element_factory_make ("gnloperation", name);
+  g_free (name);
+
   g_object_set (object->gnlobject, "priority", 0, NULL);
   g_signal_connect (G_OBJECT (object->gnlobject), "notify::duration",
       G_CALLBACK (gnlobject_duration_cb), object);