From c6ee686367ad71dc9a904a7ce5b4590f4db1637b Mon Sep 17 00:00:00 2001 From: lumingfei0525 Date: Tue, 26 Nov 2024 19:22:36 +0800 Subject: [PATCH] openfile while decode fail Signed-off-by: lumingfei0525 --- frameworks/utils/src/media_privacy_manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frameworks/utils/src/media_privacy_manager.cpp b/frameworks/utils/src/media_privacy_manager.cpp index 69f285aa3..50a997bc9 100644 --- a/frameworks/utils/src/media_privacy_manager.cpp +++ b/frameworks/utils/src/media_privacy_manager.cpp @@ -333,9 +333,8 @@ static int32_t CollectRanges(const string &path, const HideSensitiveType &sensit return E_SUCCESS; } - if ((err != E_SUCCESS) && (err != E_NO_EXIF) && (err != E_NO_PRIVACY_EXIF_TAG)) { - MEDIA_ERR_LOG("Failed to get privacy area with type %{public}d, err: %{public}u", sensitiveType, err); - return E_ERR; + if (err != E_SUCCESS) { + MEDIA_WARN_LOG("Failed to get privacy area with type %{public}d, err: %{public}u", sensitiveType, err); } for (auto &range : areas) { ranges.insert(ranges.end(), std::make_pair(range.first, range.first + range.second)); -- Gitee