mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
loading a plugin can return NULL
Original commit message from CVS: loading a plugin can return NULL
This commit is contained in:
parent
f4f9c7ea02
commit
0f0f00e2e8
1 changed files with 4 additions and 2 deletions
|
@ -634,13 +634,15 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
|||
plugin->file_size, file_status.st_size);
|
||||
gst_registry_remove_plugin (gst_registry_get_default (), plugin);
|
||||
newplugin = gst_plugin_load_file (filename, NULL);
|
||||
gst_object_unref (newplugin);
|
||||
if (newplugin)
|
||||
gst_object_unref (newplugin);
|
||||
}
|
||||
gst_object_unref (plugin);
|
||||
|
||||
} else {
|
||||
newplugin = gst_plugin_load_file (filename, NULL);
|
||||
gst_object_unref (newplugin);
|
||||
if (newplugin)
|
||||
gst_object_unref (newplugin);
|
||||
}
|
||||
|
||||
g_free (filename);
|
||||
|
|
Loading…
Reference in a new issue