From cba466b61c8cd8612bc385fc5bbfbfbc5b3e41c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 22 Feb 2013 10:42:08 +0100 Subject: [PATCH] Retry loading libbcm_host.so without an absolute path if that failed --- omx/gstomx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 20cd450..09786ff 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -82,8 +82,12 @@ gst_omx_core_acquire (const gchar * filename) g_free (bcm_host_path); if (!bcm_host_module) { - GST_ERROR ("Failed to load libbcm_host.so"); - goto error; + /* 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", -- 2.7.4