mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
551f7fab42
commit
938da2d4e2
2 changed files with 10 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue