From 9cff5e396e94db34e2fe94376625fb9e32bafaa8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 17 Nov 2024 19:52:18 +0100 Subject: [PATCH] Add flag for imagereader creation --- client/decoder/android/android_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/decoder/android/android_decoder.cpp b/client/decoder/android/android_decoder.cpp index 9c217eb1..7d53a48e 100644 --- a/client/decoder/android/android_decoder.cpp +++ b/client/decoder/android/android_decoder.cpp @@ -94,7 +94,7 @@ decoder::decoder( description.video_width, description.video_height, AIMAGE_FORMAT_PRIVATE, - AHARDWAREBUFFER_USAGE_CPU_READ_NEVER | AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, + AHARDWAREBUFFER_USAGE_CPU_READ_NEVER | AHARDWAREBUFFER_USAGE_CPU_WRITE_NEVER | AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, scenes::stream::image_buffer_size + 4 /* maxImages */, &ir), "AImageReader_newWithUsage");