From 3aa55c335f1491b40e587837f6f12423f66e401c Mon Sep 17 00:00:00 2001
From: Benoit Favre <benoit.favre@lif.univ-mrs.fr>
Date: Tue, 17 Feb 2015 16:47:44 +0100
Subject: [PATCH] reenable acoustic state saving after endpoint

---
 src/gstkaldinnet2onlinedecoder.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gstkaldinnet2onlinedecoder.cc b/src/gstkaldinnet2onlinedecoder.cc
index 27a7fdd..d63ad9a 100644
--- a/src/gstkaldinnet2onlinedecoder.cc
+++ b/src/gstkaldinnet2onlinedecoder.cc
@@ -884,7 +884,7 @@ static void gst_kaldinnet2onlinedecoder_loop(
       gst_kaldinnet2onlinedecoder_final_result(filter, clat, &num_frames,
                                                &tot_like, &num_words);
       //fprintf(stderr, "  END final_result ()\n");
-      if (num_words > 0) {
+      if (true || num_words > 0) {
         // Only update adaptation state if the utterance was not empty
 #ifdef THREADED_DECODER
         decoder.GetAdaptationState(filter->adaptation_state);
-- 
GitLab