mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst/gstpreset.c: Plug a leak and fix saving.
Original commit message from CVS: * gst/gstpreset.c: Plug a leak and fix saving.
This commit is contained in:
parent
adc1062105
commit
63472aba50
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-20 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/gstpreset.c:
|
||||||
|
Plug a leak and fix saving.
|
||||||
|
|
||||||
2007-11-20 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-11-20 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* docs/gst/gstreamer-sections.txt:
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
|
|
@ -357,6 +357,7 @@ gst_preset_default_get_property_names (GstPreset * self)
|
||||||
|
|
||||||
if ((properties = g_object_class_list_properties (G_OBJECT_CLASS
|
if ((properties = g_object_class_list_properties (G_OBJECT_CLASS
|
||||||
(GST_ELEMENT_GET_CLASS (self)), &number_of_properties))) {
|
(GST_ELEMENT_GET_CLASS (self)), &number_of_properties))) {
|
||||||
|
GST_INFO (" filtering properties: %u", number_of_properties);
|
||||||
for (i = 0; i < number_of_properties; i++) {
|
for (i = 0; i < number_of_properties; i++) {
|
||||||
property = properties[i];
|
property = properties[i];
|
||||||
if (preset_skip_property (property) ||
|
if (preset_skip_property (property) ||
|
||||||
|
@ -373,6 +374,9 @@ gst_preset_default_get_property_names (GstPreset * self)
|
||||||
|
|
||||||
names = g_list_prepend (names, property->name);
|
names = g_list_prepend (names, property->name);
|
||||||
}
|
}
|
||||||
|
g_free (properties);
|
||||||
|
} else {
|
||||||
|
GST_INFO ("no properties");
|
||||||
}
|
}
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
@ -653,10 +657,10 @@ gst_preset_default_save_preset (GstPreset * self, const gchar * name)
|
||||||
g_hash_table_insert (data, (gpointer) property->name, (gpointer) str);
|
g_hash_table_insert (data, (gpointer) property->name, (gpointer) str);
|
||||||
str = NULL;
|
str = NULL;
|
||||||
}
|
}
|
||||||
g_list_free (properties);
|
|
||||||
}
|
}
|
||||||
/* @todo: handle childproxy properties as well */
|
/* @todo: handle childproxy properties as well */
|
||||||
GST_INFO (" saved");
|
GST_INFO (" saved");
|
||||||
|
g_list_free (properties);
|
||||||
} else {
|
} else {
|
||||||
GST_INFO ("no properties");
|
GST_INFO ("no properties");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue