[Bug 785406] android: gstjniutils.c fails to find application class loader provider on Android 7.0
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 26 16:55:51 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=785406
--- Comment #6 from Jeremi Wójcicki <jeremi.wojcicki at gmail.com> ---
1. Using 32 bit ARM binary the problem still occurs
2. I have used a following code (correct me it its wrong, I do not have any
experience with glib):
----------------
#include <gmodule.h>
void hello_fcn(){
LOG_INFO("Hello function");
}
void g_module_test() {
GModule *m;
gpointer *ptr;
m = g_module_open(NULL, G_MODULE_BIND_LOCAL);
if (!m) {
LOG_ERROR("module open - False");
} else {
LOG_ERROR("module open - True");
}
if (!g_module_symbol(m, "hello_fcn", ptr)) {
LOG_ERROR("symbol - False");
} else {
LOG_ERROR("symbol - True");
}
hello_fcn();
}
-------------
I call g_module_test somewhere in gstreamer mainloop. Is this what you asked
for?
The result is following:
07-26 18:29:46.051 28198-28275/org.freedesktop.gstreamer.tutorials.tutorial_3
E/GST_log: module open - True
07-26 18:29:46.051 28198-28275/org.freedesktop.gstreamer.tutorials.tutorial_3
E/GLib+GModule: g_module_symbol: assertion 'symbol != NULL' failed
07-26 18:29:46.051 28198-28275/org.freedesktop.gstreamer.tutorials.tutorial_3
E/GST_log: symbol - False
07-26 18:29:46.051 28198-28275/org.freedesktop.gstreamer.tutorials.tutorial_3
I/GST_log: Hello function
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list