debug
This commit is contained in:
parent
281bb13a73
commit
f2299b38db
|
@ -66,7 +66,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
|
||||
// 1. 获取GIL
|
||||
std::cout << "[1] 获取GIL锁..." << std::endl;
|
||||
PyGILState_STATE gstate = PyGILState_Ensure();
|
||||
//PyGILState_STATE gstate = PyGILState_Ensure();
|
||||
|
||||
try {
|
||||
// 2. 输入参数校验
|
||||
|
@ -219,12 +219,12 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
*/
|
||||
|
||||
std::cout << "[9] 释放GIL..." << std::endl;
|
||||
PyGILState_Release(gstate);
|
||||
//PyGILState_Release(gstate);
|
||||
std::cout << "=== 音频处理完成 ===" << std::endl;
|
||||
|
||||
} catch (const std::exception& e) {
|
||||
std::cout << "[EXCEPTION] 异常捕获: " << e.what() << std::endl;
|
||||
PyGILState_Release(gstate);
|
||||
//PyGILState_Release(gstate);
|
||||
std::cerr << "Audio process error: " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue