切换视频截图失败处理
authorxue <2144439972@qq.com>
Fri, 26 Dec 2025 02:35:51 +0000 (10:35 +0800)
committerxue <2144439972@qq.com>
Fri, 26 Dec 2025 02:35:51 +0000 (10:35 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp

index cf9e28c..d4b2869 100644 (file)
@@ -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;
             }
         }