From d34c8299cd04381ac40dff64be204365b003700e Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 20 Nov 2012 23:59:41 +0530 Subject: [PATCH] Drop redundant init code from JNI side GStreamer initialisation is done on the Java side before the transcode API is called. --- jni/transcode.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/jni/transcode.c b/jni/transcode.c index 5eb390a14..be1897675 100644 --- a/jni/transcode.c +++ b/jni/transcode.c @@ -3,18 +3,6 @@ #include #include -static int init(void) -{ - /* XXX: ZERO thread-safety guarantees here */ - static gboolean inited = 0; - - if (inited) - return 0; - - gst_init(NULL, NULL); - return 0; -} - static int transcode(const char *infile, const char *outfile, const char *profile, jobject cb_obj, JNIEnv *env) { @@ -24,8 +12,6 @@ static int transcode(const char *infile, const char *outfile, gchar pipeline_str[1024]; int ret = 0; - init(); - snprintf(pipeline_str, 1024, "filesrc location=\"%s\" ! " "progressreport silent=true format=percent update-freq=1 ! "