gst/gstregistryxml.c: Don't crash if we failed to load a feature from a plugin.

Original commit message from CVS:
* gst/gstregistryxml.c: (load_plugin):
Don't crash if we failed to load a feature from a plugin.
This commit is contained in:
Michael Smith 2005-11-29 11:07:54 +00:00
parent 2ababa8cbe
commit 9bc0e85dce
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-11-29 Michael Smith <msmith@fluendo.com>
* gst/gstregistryxml.c: (load_plugin):
Don't crash if we failed to load a feature from a plugin.
2005-11-28 Thomas Vander Stichele <thomas at apestaart dot org> 2005-11-28 Thomas Vander Stichele <thomas at apestaart dot org>
* check/pipelines/simple_launch_lines.c: (setup_pipeline), * check/pipelines/simple_launch_lines.c: (setup_pipeline),

2
common

@ -1 +1 @@
Subproject commit f31468e933b5b980398cf636a37abf16ca46c4a0 Subproject commit 33084fbe0531733bc02aa1d9de608206d5553a15

View file

@ -699,9 +699,8 @@ load_plugin (xmlTextReaderPtr reader, GList ** feature_list)
} else if (g_str_equal (tag, "feature")) { } else if (g_str_equal (tag, "feature")) {
GstPluginFeature *feature = load_feature (reader); GstPluginFeature *feature = load_feature (reader);
feature->plugin_name = g_strdup (plugin->desc.name);
if (feature) { if (feature) {
feature->plugin_name = g_strdup (plugin->desc.name);
*feature_list = g_list_prepend (*feature_list, feature); *feature_list = g_list_prepend (*feature_list, feature);
} }
} else { } else {