Commit 93f2bb11fd9afe6fa8d895033194db32800c381e
1 parent
01eb3dc9
Exists in
master
and in
1 other branch
Corrige REC Only Audio
Showing
5 changed files
with
4 additions
and
14 deletions
Show diff stats
recognize/src/include/recognize.h
... | ... | @@ -45,15 +45,12 @@ public: |
45 | 45 | void notifyPCRBase(uint64_t pcrbase); |
46 | 46 | |
47 | 47 | bool isFinished(); |
48 | - void hasAudio(); | |
49 | - | |
50 | 48 | |
51 | 49 | void Run(); |
52 | 50 | int count_lines; |
53 | 51 | |
54 | 52 | private: |
55 | 53 | |
56 | - bool isAudio; | |
57 | 54 | int64_t pcr_base; |
58 | 55 | bool hasPCRBase; |
59 | 56 | char* pathVideo; | ... | ... |
recognize/src/recognize.cpp
servico/src/include/serviceWindowGeneration.h
... | ... | @@ -31,7 +31,7 @@ |
31 | 31 | #define SERVICE_TYPE_REC 3 /* Reconhecimento de Voz */ |
32 | 32 | #define SERVICE_TYPE_TEXT 4 /* Texto */ |
33 | 33 | #define SERVICE_TYPE_SRT_ONLY 5 /* Subtitle SRT ONLY */ |
34 | -#define SERVICE_TYPE_REC_ONLY_LIBRAS 6 /* Subtitle SRT ONLY */ | |
34 | +#define SERVICE_TYPE_REC_ONLY_AUDIO 6 /* Subtitle AUDIO ONLY */ | |
35 | 35 | |
36 | 36 | using namespace Tradutor; |
37 | 37 | using namespace Util; | ... | ... |
servico/src/serviceWindowGeneration.cpp
... | ... | @@ -46,7 +46,7 @@ bool ServiceWindowGeneration::isRunning() { |
46 | 46 | |
47 | 47 | /* Quando o sincronizador termina, ele invoca esse método para avisar! */ |
48 | 48 | void ServiceWindowGeneration::finalizouSincronizacao() { |
49 | - if (getRunningOption() != '2' && serviceType == SERVICE_TYPE_REC && serviceType == SERVICE_TYPE_SRT) { | |
49 | + if (getRunningOption() != '2' && serviceType == SERVICE_TYPE_REC || serviceType == SERVICE_TYPE_SRT) { | |
50 | 50 | mixer = new Mixer(); |
51 | 51 | mixer->initialize(this->path_input, this->path_libras,this->position,this->size,this->transparency, this->user_id); |
52 | 52 | createThumbnail(); |
... | ... | @@ -149,7 +149,7 @@ void ServiceWindowGeneration::initialize() { |
149 | 149 | vector<string> tokens; |
150 | 150 | /* Se for texto não é necessário vídeo de entrada (path_input) */ |
151 | 151 | if (serviceType != SERVICE_TYPE_TEXT && serviceType != SERVICE_TYPE_SRT_ONLY && |
152 | - serviceType != SERVICE_TYPE_REC_ONLY_LIBRAS) { | |
152 | + serviceType != SERVICE_TYPE_REC_ONLY_AUDIO) { | |
153 | 153 | char * pathtmp = this->path_input; |
154 | 154 | int size = strlen(pathtmp); |
155 | 155 | char vtemp [size]; | ... | ... |
servico/src/serviceWindowGenerationFromREC.cpp
... | ... | @@ -39,10 +39,7 @@ void ServiceWindowGenerationFromREC::initialize() { |
39 | 39 | |
40 | 40 | rec->addListener(this); |
41 | 41 | |
42 | - if (serviceType == 6){ | |
43 | - rec->hasAudio(); | |
44 | - | |
45 | - } else { | |
42 | + if (serviceType != SERVICE_TYPE_REC_ONLY_AUDIO){ | |
46 | 43 | |
47 | 44 | inputfile = new InputFile(this->path_input); |
48 | 45 | monitor_pcr_base = new MonitorPCR(); | ... | ... |