From: xue <2144439972@qq.com> Date: Fri, 26 Dec 2025 02:35:51 +0000 (+0800) Subject: 切换视频截图失败处理 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c7aa2022d02d38fa29ef4c28085bf557ebcd2d5a;p=mirrors%2FFD230.git 切换视频截图失败处理 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp index cf9e28cae..d4b286994 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp @@ -620,11 +620,14 @@ namespace OHOS else { WEARABLE_LOGW(WEARABLE_LOG_MODULE_APP, "ThunderBirdMainView::SwitchVideo: lastFrameView_ is null, cannot display last frame"); + hasLastFrame = false; } } else { - WEARABLE_LOGW(WEARABLE_LOG_MODULE_APP, "ThunderBirdMainView::SwitchVideo: Failed to capture last frame"); + // 截图失败,直接切换视频(不显示最后一帧) + WEARABLE_LOGW(WEARABLE_LOG_MODULE_APP, "ThunderBirdMainView::SwitchVideo: Failed to capture last frame, switching video directly"); + hasLastFrame = false; } }