mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
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:
parent
6edf71e0c8
commit
aeeab59962
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue