From 79610aa2c52f6971f4e26ab1ada6dd8be04fb6f0 Mon Sep 17 00:00:00 2001 From: Danang Rahmatullah Date: Wed, 13 Nov 2024 14:21:32 +0100 Subject: [PATCH] Clarify error messages for StartPreview --- packages/camera/camera_windows/windows/capture_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/camera/camera_windows/windows/capture_controller.cpp b/packages/camera/camera_windows/windows/capture_controller.cpp index 4caf481aaf7c..05cbc2e69e0a 100644 --- a/packages/camera/camera_windows/windows/capture_controller.cpp +++ b/packages/camera/camera_windows/windows/capture_controller.cpp @@ -574,7 +574,7 @@ void CaptureControllerImpl::StartPreview() { hr = capture_engine_->GetSource(&source); if (FAILED(hr)) { return OnPreviewStarted(GetCameraResult(hr), - "Failed to initialize video preview"); + "Failed to get capture engine source"); } if (!base_preview_media_type_) { @@ -591,7 +591,7 @@ void CaptureControllerImpl::StartPreview() { base_preview_media_type_.Get()); if (FAILED(hr)) { return OnPreviewStarted(GetCameraResult(hr), - "Failed to initialize video preview"); + "Failed to set video preview output format"); } texture_handler_->UpdateTextureSize(preview_frame_width_,