summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-06-18 15:01:03 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-18 15:01:18 +0200
commit6158d852012cad500a8328892bc51105d370c2a4 (patch)
treec2f13a7279a52996b5ed708f5124440324b3c38b
parentb6a4db61d4d83d6743b104a9ce818ecc602d88d3 (diff)
Provide "%s" as format string instead of just the string
Compiler will complain otherwise with newer NDK versions.
-rw-r--r--data/ndk-build/gstreamer_android-1.0.c.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/ndk-build/gstreamer_android-1.0.c.in b/data/ndk-build/gstreamer_android-1.0.c.in
index b4d67de1..9f9f20f3 100644
--- a/data/ndk-build/gstreamer_android-1.0.c.in
+++ b/data/ndk-build/gstreamer_android-1.0.c.in
@@ -489,7 +489,7 @@ gst_android_init (JNIEnv * env, jobject context)
gchar *message = g_strdup_printf ("GStreamer initialization failed: %s",
error && error->message ? error->message : "(no message)");
jclass exception_class = (*env)->FindClass (env, "java/lang/Exception");
- __android_log_print (ANDROID_LOG_ERROR, "GStreamer", message);
+ __android_log_print (ANDROID_LOG_ERROR, "GStreamer", "%s", message);
(*env)->ThrowNew (env, exception_class, message);
g_free (message);
return;