Merge branch 'master' of ssh://git.freedesktop.org/git/gstreamer-sdk/gst-sdk-tutorials

This commit is contained in:
Xavi Artigas 2013-05-02 13:30:17 +02:00
commit 4c6be2c93e

View file

@ -7,7 +7,10 @@
* Java Bindings * Java Bindings
*/ */
jstring gst_native_get_gstreamer_info (JNIEnv* env, jobject thiz) { jstring gst_native_get_gstreamer_info (JNIEnv* env, jobject thiz) {
return (*env)->NewStringUTF(env, gst_version_string()); char *version_utf8 = gst_version_string();
jstring *version_jstring = (*env)->NewStringUTF(env, version_utf8);
g_free (version_utf8);
return version_jstring;
} }
static JNINativeMethod native_methods[] = { static JNINativeMethod native_methods[] = {