[Tizen] Use broken image when animated image loading is failed.
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 19 Apr 2021 07:26:42 +0000 (16:26 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 19 Apr 2021 07:26:53 +0000 (16:26 +0900)
This reverts commit 70c35b01b4ecaa39f0be51c49a1f76b2eb741b0a.

Change-Id: I3cf605b49d668b93492e04ff216e67f93b0d5803

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)