mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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:
parent
726f7d36dc
commit
a075cbda18
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue