summaryrefslogtreecommitdiff
path: root/gst/gstindexfactory.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-09-22 12:05:05 +0000
committerAndy Wingo <wingo@pobox.com>2005-09-22 12:05:05 +0000
commit59479d47a3792842360de998fea498fb1ce81832 (patch)
treefe2fece61fe9f29e41ff0eefa6277d5ae4626c62 /gst/gstindexfactory.c
parent54a2e06698ec60e526832e7c0c4b26d82b5b6efd (diff)
gst/gstconfig.h.in: Psych out gtk-doc.
Original commit message from CVS: 2005-09-22 Andy Wingo <wingo@pobox.com> * gst/gstconfig.h.in: Psych out gtk-doc. * docs/gst/gstreamer-sections.txt: Add GST_HAVE_GLIB_2_8. * check/Makefile.am (check_PROGRAMS): Add gstplugin to the tests. * tools/gst-inspect.c (print_element_list): Plug some inconsequential leaks. * gst/gstregistry.c (gst_registry_get_default): Doc. * gst/gsttypefindfactory.c (gst_type_find_factory_call_function): * gst/gstelementfactory.c (gst_element_factory_create): * gst/gstindexfactory.c (gst_index_factory_create): Update for refcount changes. * gst/gstpluginfeature.c (gst_plugin_feature_list_free): Doc. (gst_plugin_feature_load): Doc, don't eat refs. * gst/gstplugin.c (gst_plugin_load): Doc, don't eat refs. (gst_plugin_list_free): Doc. (gst_plugin_load_file): Doc updates.
Diffstat (limited to 'gst/gstindexfactory.c')
-rw-r--r--gst/gstindexfactory.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gst/gstindexfactory.c b/gst/gstindexfactory.c
index 6fbaef5ac1..d9e056530d 100644
--- a/gst/gstindexfactory.c
+++ b/gst/gstindexfactory.c
@@ -179,17 +179,20 @@ gst_index_factory_find (const gchar * name)
GstIndex *
gst_index_factory_create (GstIndexFactory * factory)
{
+ GstIndexFactory *newfactory;
GstIndex *new = NULL;
g_return_val_if_fail (factory != NULL, NULL);
- factory =
+ newfactory =
GST_INDEX_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
(factory)));
- if (factory == NULL)
+ if (newfactory == NULL)
return NULL;
- new = GST_INDEX (g_object_new (factory->type, NULL));
+ new = GST_INDEX (g_object_new (newfactory->type, NULL));
+
+ gst_object_unref (newfactory);
return new;
}