From 46bd6853887b1d688e836e7737d3f1c690ca0fbb Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Sun, 11 Nov 2012 13:15:55 +0530 Subject: [PATCH] Quote filenames in transcode pipeline Needed for files with spaces in their names. --- jni/transcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jni/transcode.c b/jni/transcode.c index 783e496dd..4d022a6d0 100644 --- a/jni/transcode.c +++ b/jni/transcode.c @@ -25,8 +25,8 @@ static int transcode(const char *infile, const char *outfile, init(); snprintf(pipeline_str, 1024, - "filesrc location=%s ! decodebin2 ! audioconvert ! " - "vorbisenc ! oggmux ! filesink location=%s", + "filesrc location=\"%s\" ! decodebin2 ! audioconvert ! " + "vorbisenc ! oggmux ! filesink location=\"%s\"", infile, outfile); pipeline = gst_parse_launch(pipeline_str, NULL);