summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-05-04 09:42:39 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-05-04 09:42:39 +0200
commitdc599ef7304df03b103a839f8665665bdb1ddc24 (patch)
tree7f1ba5245293c3c1beff84945e52acee35ada51d /data
parentace8e80f13e5ee048be243ac3fe9e65014a7a7d6 (diff)
ndk-build: Make gst_android_init() non-static to allow calling it from native code
Might make initialization from Qt/Xamarin applications a bit easier.
Diffstat (limited to 'data')
-rw-r--r--data/ndk-build/gstreamer_android-1.0.c.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/data/ndk-build/gstreamer_android-1.0.c.in b/data/ndk-build/gstreamer_android-1.0.c.in
index 63e16745..fdd6e550 100644
--- a/data/ndk-build/gstreamer_android-1.0.c.in
+++ b/data/ndk-build/gstreamer_android-1.0.c.in
@@ -414,8 +414,8 @@ init (JNIEnv *env, jobject context)
return TRUE;
}
-static void
-gst_android_init (JNIEnv * env, jobject gstreamer, jobject context)
+void
+gst_android_init (JNIEnv * env, jobject context)
{
gchar *cache_dir;
gchar *files_dir;
@@ -500,8 +500,14 @@ gst_android_init (JNIEnv * env, jobject gstreamer, jobject context)
"GStreamer initialization complete");
}
+static void
+gst_android_init_jni (JNIEnv * env, jobject gstreamer, jobject context)
+{
+ gst_android_init (env, context);
+}
+
static JNINativeMethod native_methods[] = {
- {"nativeInit", "(Landroid/content/Context;)V", (void *) gst_android_init}
+ {"nativeInit", "(Landroid/content/Context;)V", (void *) gst_android_init_jni}
};
jint