Commit ff91b8b1f4798b682e1b1650e3a2acacd7421f92
1 parent
a1c0caea
Exists in
master
and in
1 other branch
Converte endline da SRT para Linux (\n)
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
extratorSRT/src/extratorSRT.cpp
@@ -47,7 +47,10 @@ void ExtratorSRT::notifyEndExtraction(int sub_size) { | @@ -47,7 +47,10 @@ void ExtratorSRT::notifyEndExtraction(int sub_size) { | ||
47 | } | 47 | } |
48 | 48 | ||
49 | void ExtratorSRT::setFilePath(char* path){ | 49 | void ExtratorSRT::setFilePath(char* path){ |
50 | - filepath = (char*) path; | 50 | + filepath = (char*) path; |
51 | + string command = "perl -p -e \'s/\n/ /\' "; | ||
52 | + command.append(filepath); | ||
53 | + system(command.c_str()); | ||
51 | } | 54 | } |
52 | 55 | ||
53 | bool ExtratorSRT::isFinished(){ | 56 | bool ExtratorSRT::isFinished(){ |