From a277d853ea23759d54cb335ef4fcd445e29f52d3 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 25 Oct 2023 15:44:27 -0700 Subject: [PATCH] Don't drop status message in ConvertFromImageFrame PiperOrigin-RevId: 576667666 --- mediapipe/gpu/gpu_buffer_storage_cv_pixel_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/gpu/gpu_buffer_storage_cv_pixel_buffer.cc b/mediapipe/gpu/gpu_buffer_storage_cv_pixel_buffer.cc index da6c5a72db..5983758f92 100644 --- a/mediapipe/gpu/gpu_buffer_storage_cv_pixel_buffer.cc +++ b/mediapipe/gpu/gpu_buffer_storage_cv_pixel_buffer.cc @@ -151,7 +151,7 @@ static std::shared_ptr ConvertFromImageFrame( std::shared_ptr frame) { auto status_or_buffer = CreateCVPixelBufferForImageFrame(frame->image_frame()); - ABSL_CHECK(status_or_buffer.ok()); + ABSL_CHECK_OK(status_or_buffer); return std::make_shared( std::move(status_or_buffer).value()); }