Retry loading libbcm_host.so without an absolute path if that failed

This commit is contained in:
Sebastian Dröge 2013-02-22 10:42:08 +01:00
parent 7d2703570d
commit cba466b61c

View file

@ -81,10 +81,14 @@ gst_omx_core_acquire (const gchar * filename)
g_free (bcm_host_filename);
g_free (bcm_host_path);
if (!bcm_host_module) {
/* Retry without an absolute path */
bcm_host_module = g_module_open ("libbcm_host.so", G_MODULE_BIND_LAZY);
if (!bcm_host_module) {
GST_ERROR ("Failed to load libbcm_host.so");
goto error;
}
}
if (!g_module_symbol (bcm_host_module, "bcm_host_init",
(gpointer *) & bcm_host_init)) {