Added code to force the gsttypes plugin to load before gstelements, by simply having gstelements.c request the plugin...

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.
This commit is contained in:
Erik Walthinsen 2000-11-25 07:43:57 +00:00
parent 726f7d36dc
commit a075cbda18
2 changed files with 6 additions and 0 deletions

View 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);

View 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);