gst/gstregistryxml.c: Don't crash if we failed to load a feature from a plugin.
authorMichael Smith <msmith@xiph.org>
Tue, 29 Nov 2005 11:07:54 +0000 (11:07 +0000)
committerMichael Smith <msmith@xiph.org>
Tue, 29 Nov 2005 11:07:54 +0000 (11:07 +0000)
Original commit message from CVS:
* gst/gstregistryxml.c: (load_plugin):
Don't crash if we failed to load a feature from a plugin.

ChangeLog
common
gst/gstregistryxml.c

index b3960d6..8805454 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * check/pipelines/simple_launch_lines.c: (setup_pipeline),
diff --git a/common b/common
index f31468e..33084fb 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit f31468e933b5b980398cf636a37abf16ca46c4a0
+Subproject commit 33084fbe0531733bc02aa1d9de608206d5553a15
index 31f50fd..65c6acd 100644 (file)
@@ -699,9 +699,8 @@ load_plugin (xmlTextReaderPtr reader, GList ** feature_list)
       } else if (g_str_equal (tag, "feature")) {
         GstPluginFeature *feature = load_feature (reader);
 
-        feature->plugin_name = g_strdup (plugin->desc.name);
-
         if (feature) {
+          feature->plugin_name = g_strdup (plugin->desc.name);
           *feature_list = g_list_prepend (*feature_list, feature);
         }
       } else {