GESTrackEffect: Use gst_object_unref for the hash value destroyfunc
authorEdward Hervey <edward.hervey@collabora.co.uk>
Sat, 7 May 2011 11:22:50 +0000 (13:22 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Sat, 7 May 2011 11:22:50 +0000 (13:22 +0200)
The values are GstObjects and it makes it easier to track in debug logs
when they are being unreffed.

ges/ges-track-effect.c

index 50b15e51dec403245e2ff4a7f46bf8afe4204f04..af9251ebd3704e3878070f80c119f69ece63805d 100644 (file)
@@ -111,7 +111,7 @@ ges_track_effect_get_props_hashtable (GESTrackObject * self)
   }
 
   ret = g_hash_table_new_full ((GHashFunc) pspec_hash, pspec_equal,
-      (GDestroyNotify) g_param_spec_unref, g_object_unref);
+      (GDestroyNotify) g_param_spec_unref, gst_object_unref);
 
   /*  We go over child elements recursivly, and add writable properties to the
    *  hashtable