Don't drop status message in ConvertFromImageFrame
PiperOrigin-RevId: 576667666
This commit is contained in:
parent
3017c02d3d
commit
a277d853ea
|
@ -151,7 +151,7 @@ static std::shared_ptr<GpuBufferStorageCvPixelBuffer> ConvertFromImageFrame(
|
||||||
std::shared_ptr<GpuBufferStorageImageFrame> frame) {
|
std::shared_ptr<GpuBufferStorageImageFrame> frame) {
|
||||||
auto status_or_buffer =
|
auto status_or_buffer =
|
||||||
CreateCVPixelBufferForImageFrame(frame->image_frame());
|
CreateCVPixelBufferForImageFrame(frame->image_frame());
|
||||||
ABSL_CHECK(status_or_buffer.ok());
|
ABSL_CHECK_OK(status_or_buffer);
|
||||||
return std::make_shared<GpuBufferStorageCvPixelBuffer>(
|
return std::make_shared<GpuBufferStorageCvPixelBuffer>(
|
||||||
std::move(status_or_buffer).value());
|
std::move(status_or_buffer).value());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user