[Tizen] Use broken image when animated image loading is failed.
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 23 Jun 2021 08:04:15 +0000 (17:04 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 23 Jun 2021 08:04:19 +0000 (17:04 +0900)
This reverts commit f147787a7bf525f76339020a0c85a296304510d8.

Change-Id: I4932c60ff4593dad65e0505532f65a097ba5b985

dali/internal/imaging/common/gif-loading.cpp

index a142447..1b195b9 100644 (file)
@@ -1282,6 +1282,10 @@ bool GifLoading::LoadNextNFrames(uint32_t frameStartIndex, int count, std::vecto
 {
   int  error;
   bool ret = false;
+  if(!mImpl->mLoadSucceeded)
+  {
+    return false;
+  }
 
   Mutex::ScopedLock lock(mImpl->mMutex);
   if(!mImpl->mLoadSucceeded)