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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2253>
This commit is contained in:
Stéphane Cerveau 2022-04-21 09:51:50 +02:00 committed by Sebastian Dröge
parent fcc6fa21e9
commit 853963ba21

View file

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