mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
fix for a critical when a module returns NULL on opening
Original commit message from CVS: fix for a critical when a module returns NULL on opening
This commit is contained in:
parent
25169fe885
commit
0fcba6ca57
1 changed files with 5 additions and 0 deletions
|
@ -375,9 +375,14 @@ gst_plugin_check_file (const gchar * filename, GError ** error)
|
|||
}
|
||||
|
||||
module = g_module_open (filename, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
|
||||
if (!module) {
|
||||
check = FALSE;
|
||||
goto beach;
|
||||
}
|
||||
check = gst_plugin_check_module (module, filename, error, NULL);
|
||||
g_module_close (module);
|
||||
|
||||
beach:
|
||||
GST_INFO ("file \"%s\" %s look like a gst plugin", filename,
|
||||
check ? "does" : "doesn't");
|
||||
return check;
|
||||
|
|
Loading…
Reference in a new issue