diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2021-08-10 15:35:14 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-08-11 13:05:45 +0300 |
commit | a3ebe6c0106c9f49f10b47b08b5b8e548376baa6 (patch) | |
tree | 941876eadcae4931e338a3b546e17af7cbeed46a | |
parent | 0a63363f1a2be0442554f60d0a0ef6a5f0299963 (diff) |
plugin: load plugins with unknown license strings
We shouldn't fail to load plugins just because we don't
recognise the license string. It's not our job to validate
licenses, and the license list is outdated and ambiguous
anyway.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/865>
-rw-r--r-- | gst/gstplugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 3998f049df..ecd09d3b1e 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -505,9 +505,9 @@ gst_plugin_register_func (GstPlugin * plugin, const GstPluginDesc * desc, if (!gst_plugin_check_license (desc->license)) { if (GST_CAT_DEFAULT) - GST_WARNING ("plugin \"%s\" has invalid license \"%s\", not loading", + GST_WARNING ("plugin \"%s\" has unknown license \"%s\"", GST_STR_NULL (plugin->filename), desc->license); - return NULL; + /* We still want to load the plugin, it's not our job to validate licenses */ } if (GST_CAT_DEFAULT) |