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>
This commit is contained in:
Tim-Philipp Müller 2021-08-10 13:35:14 +01:00
parent 0a63363f1a
commit a3ebe6c010

View file

@ -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)