From a075cbda18f78ca37d1d40902755af5c63589d86 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Sat, 25 Nov 2000 07:43:57 +0000 Subject: [PATCH] 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. --- gst/elements/gstelements.c | 3 +++ plugins/elements/gstelements.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gst/elements/gstelements.c b/gst/elements/gstelements.c index 366de28356..63f857fe5f 100644 --- a/gst/elements/gstelements.c +++ b/gst/elements/gstelements.c @@ -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); diff --git a/plugins/elements/gstelements.c b/plugins/elements/gstelements.c index 366de28356..63f857fe5f 100644 --- a/plugins/elements/gstelements.c +++ b/plugins/elements/gstelements.c @@ -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);