encodebin: fix new profile unref
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 28 Mar 2011 15:02:26 +0000 (17:02 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 28 Mar 2011 15:02:26 +0000 (17:02 +0200)
gst-libs/gst/pbutils/encoding-profile.c
gst-libs/gst/pbutils/encoding-target.c

index 431f6d4..145ea65 100644 (file)
@@ -435,7 +435,7 @@ gst_encoding_container_profile_finalize (GObject * object)
 {
   GstEncodingContainerProfile *prof = (GstEncodingContainerProfile *) object;
 
-  g_list_foreach (prof->encodingprofiles, (GFunc) gst_mini_object_unref, NULL);
+  g_list_foreach (prof->encodingprofiles, (GFunc) g_object_unref, NULL);
   g_list_free (prof->encodingprofiles);
 
   G_OBJECT_CLASS (gst_encoding_container_profile_parent_class)->finalize
index f2f3f8d..525e70c 100644 (file)
@@ -107,7 +107,7 @@ gst_encoding_target_finalize (GObject * object)
   if (target->description)
     g_free (target->description);
 
-  g_list_foreach (target->profiles, (GFunc) gst_mini_object_unref, NULL);
+  g_list_foreach (target->profiles, (GFunc) g_object_unref, NULL);
   g_list_free (target->profiles);
 }