Added code to force the gsttypes plugin to load before gstelements, by simply having...
authorErik Walthinsen <omega@temple-baptist.org>
Sat, 25 Nov 2000 07:43:57 +0000 (07:43 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Sat, 25 Nov 2000 07:43:57 +0000 (07:43 +0000)
Original commit message from CVS:
Added code to force the gsttypes plugin to load before gstelements, by
simply having gstelements.c request the plugin.  Solves some dependency
problems.  This is the correct method of doing this for now, though I had
a thought:

Have a static list of hard dependencies that the plugin system is responsible
for satisfying before even trying to load the plugin.  Makes plugin design
easier.

gst/elements/gstelements.c
plugins/elements/gstelements.c

index 366de28..63f857f 100644 (file)
@@ -70,6 +70,9 @@ GstPlugin *plugin_init(GModule *module) {
   GstElementFactory *factory;
   int i = 0;
 
+  /* we depend on having the usual types loaded first */
+  gst_plugin_load("gsttypes");
+
   plugin = gst_plugin_new("gstelements");
   g_return_val_if_fail(plugin != NULL,NULL);
 
index 366de28..63f857f 100644 (file)
@@ -70,6 +70,9 @@ GstPlugin *plugin_init(GModule *module) {
   GstElementFactory *factory;
   int i = 0;
 
+  /* we depend on having the usual types loaded first */
+  gst_plugin_load("gsttypes");
+
   plugin = gst_plugin_new("gstelements");
   g_return_val_if_fail(plugin != NULL,NULL);