Makefile.am portability fix better error handling, this solves the g_error_free asser...
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 12 Jul 2002 14:14:30 +0000 (14:14 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 12 Jul 2002 14:14:30 +0000 (14:14 +0000)
Original commit message from CVS:
Makefile.am portability fix
better error handling, this solves the g_error_free assert error some people
had

gst/gstplugin.c
gst/schedulers/Makefile.am

index 041b351..273078d 100644 (file)
@@ -191,6 +191,15 @@ gst_plugin_load_plugin (GstPlugin *plugin, GError **error)
         plugin->module = module;
         return TRUE;
       }
+      else {
+       /* plugin == NULL */
+        g_set_error (error,
+                     GST_PLUGIN_ERROR,
+                     GST_PLUGIN_ERROR_MODULE,
+                     "gst_plugin_register_func failed for plugin \"%s\"",
+                     filename);
+        return FALSE;
+      }
     }
     else {
       g_set_error (error,
@@ -207,8 +216,16 @@ gst_plugin_load_plugin (GstPlugin *plugin, GError **error)
                  GST_PLUGIN_ERROR_MODULE,
                  "Error loading plugin %s, reason: %s\n",
                  filename, g_module_error());
+    return FALSE;
   }
 
+  /* FIXME: this should not happen */
+  g_set_error (error,
+               GST_PLUGIN_ERROR,
+               GST_PLUGIN_ERROR_MODULE,
+               "Error loading plugin %s, reason: %s\n",
+               filename, 
+              "fell of the end of the gst_plugin_load_plugin function");
   return FALSE;
 }
 
index 5fbc239..64d5d94 100644 (file)
@@ -25,6 +25,6 @@ libgstfaststandardscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 ## this is a REALLY evil hack 
 ## but we need to keep it as long as we have libs/gst and libs/ext
 $(top_builddir)/libs/ext/cothreads/cothreads/libcothreads-gthreads.la:
-       cd $(top_builddir)/libs/ext/cothreads/cothreads && make
+       cd $(top_builddir)/libs/ext/cothreads/cothreads && ${MAKE}
 
 noinst_HEADERS = cothreads_compat.h