diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-12 18:20:22 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-13 09:35:20 +0100 |
commit | f505dad87aa28dc5311af7238a4fd28cbab9bdd9 (patch) | |
tree | ef01f347147cb112f3ee9485bc68adbafd699f59 | |
parent | 3544fa5ae32e38dfd9ee08a02288bc3699c85f71 (diff) | |
download | gst-omx-f505dad87aa28dc5311af7238a4fd28cbab9bdd9.tar.gz |
omx: Lazy-load symbols of libbcm_host.so
It exports eglIntOpenMAXILDoneMarker(), which is also
exported by libopenmaxil.so... but we need the version
from libopenmaxil.so as the other one is just a stub.
-rw-r--r-- | omx/gstomx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index 56a6eb3..76d912d 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -76,14 +76,18 @@ gst_omx_core_acquire (const gchar * filename) bcm_host_filename = g_build_filename (bcm_host_path, "libbcm_host.so", NULL); - bcm_host_module = g_module_open (bcm_host_filename, G_MODULE_BIND_LAZY); + bcm_host_module = + g_module_open (bcm_host_filename, + G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL); 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); + bcm_host_module = + g_module_open ("libbcm_host.so", + G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL); if (!bcm_host_module) { GST_ERROR ("Failed to load libbcm_host.so"); goto error; |