gst/gstregistrybinary.c: If gst_registry_add_plugin() fails our reference to the plugin is invalid so don't try to us...

Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_load_plugin):
If gst_registry_add_plugin() fails our reference to the plugin is
invalid so don't try to use it anymore and instead error out.
This commit is contained in:
Sebastian Dröge 2008-04-13 13:54:55 +00:00
parent 551f7fab42
commit 938da2d4e2
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-04-13 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstregistrybinary.c: (gst_registry_binary_load_plugin):
If gst_registry_add_plugin() fails our reference to the plugin is
invalid so don't try to use it anymore and instead error out.
2008-04-12 Tim-Philipp Müller <tim at centricular dot net>
* tools/gst-xmlinspect.c: (print_element_info), (main):

View file

@ -857,7 +857,10 @@ gst_registry_binary_load_plugin (GstRegistry * registry, gchar ** in)
GST_LOG ("read strings for '%s'", plugin->desc.name);
plugin->basename = g_path_get_basename (plugin->filename);
gst_registry_add_plugin (registry, plugin);
if (!gst_registry_add_plugin (registry, plugin))
return FALSE;
GST_INFO ("Added plugin '%s' plugin with %d features from binary registry",
plugin->desc.name, pe->nfeatures);
for (i = 0; i < pe->nfeatures; i++) {