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 ! "