Skip to content

Commit

Permalink
Clarify error messages for StartPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
dasyad00 committed Nov 13, 2024
1 parent ff678d6 commit 79610aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/camera/camera_windows/windows/capture_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand All @@ -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_,
Expand Down

0 comments on commit 79610aa

Please sign in to comment.