Fangjun Kuang
Committed by GitHub

fix building MFC examples (#1178)

@@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() { @@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() {
525 525
526 auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_); 526 auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_);
527 std::string text = r->text; 527 std::string text = r->text;
528 - SherpaOnnxDestroyOnlineRecognizer(r); 528 + SherpaOnnxDestroyOnlineRecognizerResult(r);
529 if (!text.empty() && last_text != text) { 529 if (!text.empty() && last_text != text) {
530 // CString str; 530 // CString str;
531 // str.Format(_T("%s"), Cat(results, text).c_str()); 531 // str.Format(_T("%s"), Cat(results, text).c_str());