sumom****@users*****
sumom****@users*****
2008年 10月 13日 (月) 17:43:43 JST
Index: julius4/libjulius/src/m_options.c diff -u julius4/libjulius/src/m_options.c:1.15 julius4/libjulius/src/m_options.c:1.16 --- julius4/libjulius/src/m_options.c:1.15 Thu Sep 25 14:00:06 2008 +++ julius4/libjulius/src/m_options.c Mon Oct 13 17:43:43 2008 @@ -18,7 +18,7 @@ * @author Akinobu Lee * @date Thu May 12 18:52:07 2005 * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * */ /* @@ -283,6 +283,16 @@ if ((lmconf = j_get_lmconf_by_name(jconf, tmparg)) == NULL) return FALSE; } + /* check to avoid assigning an LM for multiple SR */ + for(sconf=jconf->search_root;sconf;sconf=sconf->next) { + if (sconf->lmconf == lmconf) { + jlog("ERROR: you are going to share LM \"%s\" among multiple SRs\n"); + jlog("ERROR: current Julius cannot share LM among SRs\n"); + jlog("ERROR: you should define LM for each SR\n"); + return FALSE; + } + } + /* if not first time, create new module instance and switch to it */ sconf = j_jconf_search_new(); sconf->amconf = amconf;