Quote filenames in transcode pipeline

Needed for files with spaces in their names.
This commit is contained in:
Arun Raghavan 2012-11-11 13:15:55 +05:30
parent af9dd0832f
commit 46bd685388

View file

@ -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);