mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
Retry loading libbcm_host.so without an absolute path if that failed
This commit is contained in:
parent
7d2703570d
commit
cba466b61c
1 changed files with 6 additions and 2 deletions
|
@ -81,10 +81,14 @@ gst_omx_core_acquire (const gchar * filename)
|
||||||
g_free (bcm_host_filename);
|
g_free (bcm_host_filename);
|
||||||
g_free (bcm_host_path);
|
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) {
|
if (!bcm_host_module) {
|
||||||
GST_ERROR ("Failed to load libbcm_host.so");
|
GST_ERROR ("Failed to load libbcm_host.so");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!g_module_symbol (bcm_host_module, "bcm_host_init",
|
if (!g_module_symbol (bcm_host_module, "bcm_host_init",
|
||||||
(gpointer *) & bcm_host_init)) {
|
(gpointer *) & bcm_host_init)) {
|
||||||
|
|
Loading…
Reference in a new issue