From 50d6c96383a45b5e1c520468f6cd62551e1f49da Mon Sep 17 00:00:00 2001 From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com> Date: 星期一, 21 八月 2023 15:58:58 +0800 Subject: [PATCH] Fix bug for mp4 in h5 (#882) --- funasr/runtime/websocket/websocket-server-2pass.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/funasr/runtime/websocket/websocket-server-2pass.h b/funasr/runtime/websocket/websocket-server-2pass.h index d483283..c4fbed3 100644 --- a/funasr/runtime/websocket/websocket-server-2pass.h +++ b/funasr/runtime/websocket/websocket-server-2pass.h @@ -54,11 +54,11 @@ nlohmann::json msg; std::shared_ptr<std::vector<char>> samples; std::shared_ptr<std::vector<std::vector<std::string>>> punc_cache; - websocketpp::lib::mutex* thread_lock; // lock for each connection + std::shared_ptr<websocketpp::lib::mutex> thread_lock; // lock for each connection FUNASR_HANDLE tpass_online_handle=NULL; std::string online_res = ""; std::string tpass_res = ""; - + std::shared_ptr<asio::io_context::strand> strand_; // for data execute in order } FUNASR_MESSAGE; // See https://wiki.mozilla.org/Security/Server_Side_TLS for more details about -- Gitblit v1.9.1