Commit c72f8d1328093fc19d7729f50383e0ce71ba8628
1 parent
b77b053a
Exists in
master
and in
1 other branch
Ajustes no serviço de legenda
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
extrator/src/extratorVTT.cpp
| @@ -103,7 +103,6 @@ string ExtratorVTT::formatText(string line){ | @@ -103,7 +103,6 @@ string ExtratorVTT::formatText(string line){ | ||
| 103 | lessThanPos = f_line.find_first_of(LESS_THAN); | 103 | lessThanPos = f_line.find_first_of(LESS_THAN); |
| 104 | moreThanPos = f_line.find_first_of(MORE_THAN); | 104 | moreThanPos = f_line.find_first_of(MORE_THAN); |
| 105 | } | 105 | } |
| 106 | - | ||
| 107 | return f_line; | 106 | return f_line; |
| 108 | } | 107 | } |
| 109 | 108 |
renderer/src/include/renderer.h
| @@ -22,7 +22,6 @@ | @@ -22,7 +22,6 @@ | ||
| 22 | #include <lavidlib/net/SocketException.h> | 22 | #include <lavidlib/net/SocketException.h> |
| 23 | #include <lavidlib/base/RuntimeException.h> | 23 | #include <lavidlib/base/RuntimeException.h> |
| 24 | #include <lavidlib/net/UnknownHostException.h> | 24 | #include <lavidlib/net/UnknownHostException.h> |
| 25 | - #include <iostream> | ||
| 26 | 25 | ||
| 27 | #define HOST "0.0.0.0" | 26 | #define HOST "0.0.0.0" |
| 28 | #define PORT 5555 | 27 | #define PORT 5555 |
servico/src/serviceWindowGenerationFromSubtitle.cpp
| @@ -132,11 +132,12 @@ Extrator::ExtratorType ServiceWindowGenerationFromSubtitle::getExtratorType(){ | @@ -132,11 +132,12 @@ Extrator::ExtratorType ServiceWindowGenerationFromSubtitle::getExtratorType(){ | ||
| 132 | 132 | ||
| 133 | if(signature.size() == 6 && strcmp(SIGNATURE, signature.c_str()) == 0){ | 133 | if(signature.size() == 6 && strcmp(SIGNATURE, signature.c_str()) == 0){ |
| 134 | return Extrator::VTT; | 134 | return Extrator::VTT; |
| 135 | + }else{ | ||
| 136 | + return Extrator::SRT; | ||
| 135 | } | 137 | } |
| 136 | 138 | ||
| 137 | if(signature.size() > 6 && signature.find(SIGNATURE) == string::npos){ | 139 | if(signature.size() > 6 && signature.find(SIGNATURE) == string::npos){ |
| 138 | return Extrator::SRT; | 140 | return Extrator::SRT; |
| 139 | - | ||
| 140 | }else if(!isspace(signature.at(6))){ | 141 | }else if(!isspace(signature.at(6))){ |
| 141 | return Extrator::SRT; | 142 | return Extrator::SRT; |
| 142 | } | 143 | } |