fix: 截图失败时清空image_payload

This commit is contained in:
status102
2025-01-15 20:18:36 +08:00
parent eaecef60d1
commit 94a8e01543

View File

@@ -510,6 +510,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect
return true;
};
image_payload = {};
if (m_adb.screencap_method == AdbProperty::ScreencapMethod::UnknownYet) {
Log.info("Try to find the fastest way to screencap");
auto min_cost = milliseconds(LLONG_MAX);