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
renderer/src/include/renderer.h
servico/src/serviceWindowGenerationFromSubtitle.cpp
... | ... | @@ -132,11 +132,12 @@ Extrator::ExtratorType ServiceWindowGenerationFromSubtitle::getExtratorType(){ |
132 | 132 | |
133 | 133 | if(signature.size() == 6 && strcmp(SIGNATURE, signature.c_str()) == 0){ |
134 | 134 | return Extrator::VTT; |
135 | + }else{ | |
136 | + return Extrator::SRT; | |
135 | 137 | } |
136 | 138 | |
137 | 139 | if(signature.size() > 6 && signature.find(SIGNATURE) == string::npos){ |
138 | 140 | return Extrator::SRT; |
139 | - | |
140 | 141 | }else if(!isspace(signature.at(6))){ |
141 | 142 | return Extrator::SRT; |
142 | 143 | } | ... | ... |