From 3a81895fada7100ba8f69f934b383b12147e9ad4 Mon Sep 17 00:00:00 2001 From: tscholb Date: Fri, 6 May 2022 14:07:44 +0900 Subject: [PATCH] [Tizen] Set the LoadSuccessflag to false after ReleaseResource() is called When the non-animated image is detached from the scene first and attached to the scene again, webp-loading can't load webp information because it is already loaded its information. To re-load this information, we need to set the flag to false. Change-Id: I08c00042dc84aa40cdfbe02d462920946ed5def2 --- dali/internal/imaging/common/webp-loading.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dali/internal/imaging/common/webp-loading.cpp b/dali/internal/imaging/common/webp-loading.cpp index 346c12d..8efdc5b 100644 --- a/dali/internal/imaging/common/webp-loading.cpp +++ b/dali/internal/imaging/common/webp-loading.cpp @@ -193,6 +193,9 @@ public: free((void*)mBuffer); mBuffer = nullptr; } + + // Set the flag so that webp information can be reloaded when visual is re-attached to scene. + mLoadSucceeded = false; } // Moveable but not copyable @@ -315,6 +318,7 @@ Dali::Devel::PixelBuffer WebPLoading::LoadFrame(uint32_t frameIndex) free((void*)frameBuffer); } mImpl->ReleaseResource(); + return pixelBuffer; } #endif -- 2.7.4