From 853963ba214088de306c7deae81d30f42466ef1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Thu, 21 Apr 2022 09:51:50 +0200 Subject: [PATCH] pythonplugin: fails silently on plugin issue If a gst python plugin fails to load, the meta plugin should continue to try loading the following. If no plugin can be loaded, the meta plugin should not be blacklisted by returning false. Part-of: --- subprojects/gst-python/plugin/gstpythonplugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-python/plugin/gstpythonplugin.c b/subprojects/gst-python/plugin/gstpythonplugin.c index 90c1dd6b8a..692b47225e 100644 --- a/subprojects/gst-python/plugin/gstpythonplugin.c +++ b/subprojects/gst-python/plugin/gstpythonplugin.c @@ -113,7 +113,6 @@ gst_python_load_directory (GstPlugin * plugin, const gchar * path) GDir *dir; const gchar *file; GError *error = NULL; - gboolean ret = TRUE; dir = g_dir_open (path, 0, &error); if (!dir) { @@ -127,7 +126,7 @@ gst_python_load_directory (GstPlugin * plugin, const gchar * path) if (g_str_has_suffix (file, ".py")) { gsize len = strlen (file) - 3; gchar *name = g_strndup (file, len); - ret &= gst_python_plugin_load_file (plugin, name); + gst_python_plugin_load_file (plugin, name); g_free (name); } }