From e47acced9baa462e8406eb27d87dc16de2eec731 Mon Sep 17 00:00:00 2001 From: "XI.CHEN" <2311041011@qq.com> Date: Tue, 20 May 2025 14:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 2e477757..3b23ca21 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1816,8 +1816,10 @@ bool CPhoneDevice::TakeVideoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power ON"); std::shared_ptr ethernetPowerCtrl = std::make_shared(1); // std::shared_ptr ethernetPowerCtrl; + + net_handle_t netHandle = 0; #if ((!defined USING_N938) && (!defined USING_PTZ)) - net_handle_t netHandle = GetEthnetHandle(); + netHandle = GetEthnetHandle(); if (netHandle == 0) { // Wait about 10s @@ -1939,8 +1941,10 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std: XYLOG(XYLOG_SEVERITY_DEBUG, "Ethernet Power ON"); std::shared_ptr ethernetPowerCtrl = std::make_shared(1); // std::shared_ptr ethernetPowerCtrl; + + net_handle_t netHandle = 0; #if ((!defined USING_N938) && (!defined USING_PTZ)) - net_handle_t netHandle = GetEthnetHandle(); + netHandle = GetEthnetHandle(); if (netHandle == 0) { // Wait about 10s