mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
gst/gstplugin.c: Fix plugin loading if plugin/lib was already loaded. Fixes #163383
Original commit message from CVS: * gst/gstplugin.c: (gst_plugin_load): Fix plugin loading if plugin/lib was already loaded. Fixes #163383
This commit is contained in:
parent
1ffedb43a3
commit
a9713ad5da
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-01-09 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
|
||||||
|
|
||||||
|
* gst/gstplugin.c: (gst_plugin_load):
|
||||||
|
Fix plugin loading if plugin/lib was already loaded. Fixes
|
||||||
|
#163383
|
||||||
|
|
||||||
2005-01-09 Sebastien Cote <sc5@hermes.usherb.ca>
|
2005-01-09 Sebastien Cote <sc5@hermes.usherb.ca>
|
||||||
|
|
||||||
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
|
@ -872,8 +872,8 @@ gst_plugin_load (const gchar * name)
|
||||||
|
|
||||||
plugin = gst_registry_pool_find_plugin (name);
|
plugin = gst_registry_pool_find_plugin (name);
|
||||||
if (plugin) {
|
if (plugin) {
|
||||||
gst_plugin_load_file (plugin->filename, &error);
|
plugin = gst_plugin_load_file (plugin->filename, &error);
|
||||||
if (error) {
|
if (!plugin) {
|
||||||
GST_WARNING ("load_plugin error: %s\n", error->message);
|
GST_WARNING ("load_plugin error: %s\n", error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -892,7 +892,7 @@ gst_plugin_load (const gchar * name)
|
||||||
* Load the named library. Name should be given as
|
* Load the named library. Name should be given as
|
||||||
* "liblibrary.so". (exception to this rule is 'riff', which .so name is 'gstriff')
|
* "liblibrary.so". (exception to this rule is 'riff', which .so name is 'gstriff')
|
||||||
*
|
*
|
||||||
* Returns: whether the library was loaded or not (and return FALSE if it was already loaded)
|
* Returns: whether the library was loaded or not (and returns TRUE if it was already loaded)
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_library_load (const gchar * name)
|
gst_library_load (const gchar * name)
|
||||||
|
|
Loading…
Reference in a new issue