diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 1d83453..8bd0303 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -326,7 +326,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, //setData(audioFrame); // 1. 获取GIL //std::cout << "[1] 获取GIL锁..." << std::endl; - ////PyGILState_STATE gstate = PyGILState_Ensure(); + PyGILState_STATE gstate = PyGILState_Ensure(); //try { // // 2. 输入参数校验 @@ -465,7 +465,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, // shm_unlink(shm_name); // std::cout << "[9] 释放GIL..." << std::endl; - // //PyGILState_Release(gstate); + PyGILState_Release(gstate); // std::cout << "=== 音频处理完成 ===" << std::endl; //} catch (const std::exception& e) {