mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
fcc6fa21e9
commit
853963ba21
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue