[Tizen] Use broken image when animated image loading is failed
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:20:43 +0000 (15:20 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:22:05 +0000 (15:22 +0900)
This reverts commit 4fcf5c12f8bd54bc6ee60490b623183d118facf7.

Change-Id: Ib45eba314429420a8b8bf5a5049df9680ed0a914

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;
 {
   int  error;
   bool ret = false;
+  if(!mImpl->mLoadSucceeded)
+  {
+    return false;
+  }
 
   Mutex::ScopedLock lock(mImpl->mMutex);
   if(!mImpl->mLoadSucceeded)
 
   Mutex::ScopedLock lock(mImpl->mMutex);
   if(!mImpl->mLoadSucceeded)