sumom****@users*****
sumom****@users*****
2009年 9月 18日 (金) 17:27:34 JST
Index: julius4/libjulius/src/recogmain.c diff -u julius4/libjulius/src/recogmain.c:1.13 julius4/libjulius/src/recogmain.c:1.14 --- julius4/libjulius/src/recogmain.c:1.13 Fri Jul 3 02:05:20 2009 +++ julius4/libjulius/src/recogmain.c Fri Sep 18 17:27:33 2009 @@ -12,7 +12,7 @@ * @author Akinobu Lee * @date Wed Aug 8 14:53:53 2007 * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * */ @@ -581,11 +581,19 @@ if (jconf->input.type == INPUT_WAVEFORM) { #ifdef HAVE_PTHREAD /* close A/D-in thread here */ - if (recog->adin->enable_thread && ! recog->adin->input_side_segment) { - if (adin_thread_cancel(recog) == FALSE) { - return -2; + if (! recog->adin->input_side_segment) { + if (recog->adin->enable_thread) { + if (adin_thread_cancel(recog) == FALSE) { + return -2; + } + } else { + recog->adin->end_of_stream = TRUE; } } +#else + if (! recog->adin->input_side_segment) { + recog->adin->end_of_stream = TRUE; + } #endif /* end A/D input */ if (adin_end(recog->adin) == FALSE) {