From cb6c5d04a9d6aeaaed525bb5575e82bee79b7da7 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Thu, 10 Apr 2025 16:40:29 +0800 Subject: [PATCH] debug --- rtc_plugins.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rtc_plugins.cpp b/rtc_plugins.cpp index 5ac093c..84bb0b0 100644 --- a/rtc_plugins.cpp +++ b/rtc_plugins.cpp @@ -8,6 +8,11 @@ namespace py = boost::python; int init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId, boost::python::object callback) { + if (!PyArray_API) { + std::cout << "PyArray_API is null in outer init" << std::endl; + } else { + std::cout << "PyArray_API is not null in outer init" << std::endl; + } RTCContext::instance().setPyCallback(callback); bool res = RTCContext::instance().init(selfUserId, selfDisplayName, selfRoomId); if (res) { @@ -17,6 +22,11 @@ int init(const char* selfUserId, const char* selfDisplayName, const char* selfRo } } int initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex) { + if (!PyArray_API) { + std::cout << "PyArray_API is null in outer initRecv" << std::endl; + } else { + std::cout << "PyArray_API is not null in outer initRecv" << std::endl; + } bool res = RTCContext::instance().initRecv(destRoomId, srcUserId, destChannelIndex); if (res) { return 0;