gst/gstregistry.c: duplicate plugin should never be freed as this the original one we are receiving here.

Original commit message from CVS:
2005-09-13  Julien MOUTTE  <julien@moutte.net>

* gst/gstregistry.c: (gst_registry_add_plugin): duplicate plugin
should never be freed as this the original one we are receiving
here.
This commit is contained in:
Julien Moutte 2005-09-13 13:38:54 +00:00
parent 6edf71e0c8
commit aeeab59962
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-09-13 Julien MOUTTE <julien@moutte.net>
* gst/gstregistry.c: (gst_registry_add_plugin): duplicate plugin
should never be freed as this the original one we are receiving here.
2005-09-12 Steve Lhomme <steve.lhomme@free.fr>
* gst/elements/gstfilesrc.c: (gst_filesrc_get_read)
* gst/elements/gstfilesrc.h:

View file

@ -287,7 +287,10 @@ gst_registry_add_plugin (GstRegistry * registry, GstPlugin * plugin)
GST_WARNING_OBJECT (registry, "Not adding plugin %s, "
"because a plugin with same name already exists",
gst_plugin_get_name (plugin));
gst_plugin_free (plugin);
/* We don't free the plugin here because when gst_plugin_load_file detects
* and already loaded plugin it just returns the loaded one. So basically
* if we free this plugin we are freeing the original one which is already
* in the registry (dolphy, 09/13/2005) */
return FALSE;
}