From ff91b8b1f4798b682e1b1650e3a2acacd7421f92 Mon Sep 17 00:00:00 2001 From: Erickson Silva Date: Fri, 30 May 2014 15:16:02 -0300 Subject: [PATCH] Converte endline da SRT para Linux (\n) --- extratorSRT/src/extratorSRT.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extratorSRT/src/extratorSRT.cpp b/extratorSRT/src/extratorSRT.cpp index 57672ea..0040fca 100644 --- a/extratorSRT/src/extratorSRT.cpp +++ b/extratorSRT/src/extratorSRT.cpp @@ -47,7 +47,10 @@ void ExtratorSRT::notifyEndExtraction(int sub_size) { } void ExtratorSRT::setFilePath(char* path){ - filepath = (char*) path; + filepath = (char*) path; + string command = "perl -p -e \'s/\n/ /\' "; + command.append(filepath); + system(command.c_str()); } bool ExtratorSRT::isFinished(){ -- libgit2 0.21.2