Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2021-08-10 15:35:14 +0300
committerTim-Philipp Müller <tim@centricular.com>2021-08-11 13:05:45 +0300
commita3ebe6c0106c9f49f10b47b08b5b8e548376baa6 (patch)
tree941876eadcae4931e338a3b546e17af7cbeed46a
parent0a63363f1a2be0442554f60d0a0ef6a5f0299963 (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.c4
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)