From: Sebastian Dröge Date: Fri, 22 Feb 2013 09:42:08 +0000 (+0100) Subject: Retry loading libbcm_host.so without an absolute path if that failed X-Git-Tag: 1.19.3~501^2~682 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba466b61c8cd8612bc385fc5bbfbfbc5b3e41c1;p=platform%2Fupstream%2Fgstreamer.git Retry loading libbcm_host.so without an absolute path if that failed --- 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",