From 849ae5ca83be64b9a3d3a80f93a1596026630385 Mon Sep 17 00:00:00 2001 From: chen0088 Date: Wed, 30 Jul 2025 19:38:32 +0800 Subject: [PATCH] modify usage Signed-off-by: chen0088 --- .../multimedia_codec/decoder/decode_data_process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/data_process/src/pipeline_node/multimedia_codec/decoder/decode_data_process.cpp b/services/data_process/src/pipeline_node/multimedia_codec/decoder/decode_data_process.cpp index 6f40f1f3..5b806222 100644 --- a/services/data_process/src/pipeline_node/multimedia_codec/decoder/decode_data_process.cpp +++ b/services/data_process/src/pipeline_node/multimedia_codec/decoder/decode_data_process.cpp @@ -521,6 +521,8 @@ void DecodeDataProcess::GetDecoderOutputBuffer(const sptr& sur DHLOGE("Acquire surface buffer failed!"); return; } + ret = surfaceBuffer->InvalidateCache(); + CHECK_AND_LOG(ret != GSERROR_OK, "Invalidate cache failed."); int32_t alignedWidth = surfaceBuffer->GetStride(); if (surfaceBuffer->GetSize() > BUFFER_MAX_SIZE || alignedWidth > ALIGNED_WIDTH_MAX_SIZE) { DHLOGE("surface buffer size or alignedWidth too long"); -- Gitee