autoconvert: Fix previous commit: ensure we take a ref on the features
authorJan Schmidt <thaytan@noraisin.net>
Wed, 4 Nov 2009 23:32:07 +0000 (23:32 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 4 Nov 2009 23:32:07 +0000 (23:32 +0000)
gst/autoconvert/gstautoconvert.c

index f3d8bed436828c3a180c8551ea852fa593ba465c..4fb0a416eb80ffe95b3cd4a1dc2d18e74d15b48b 100644 (file)
@@ -292,6 +292,7 @@ gst_auto_convert_set_property (GObject * object,
       if (autoconvert->factories == NULL) {
         GList *factories = g_value_get_pointer (value);
         autoconvert->factories = g_list_copy (factories);
+        g_list_foreach (autoconvert->factories, (GFunc) g_object_ref, NULL);
       } else
         GST_WARNING_OBJECT (object, "Can not reset factories after they"
             " have been set or auto-discovered");