[Tizen] Use broken image when animated image loading is failed
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 13 Jul 2021 05:03:58 +0000 (14:03 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 13 Jul 2021 05:04:03 +0000 (14:04 +0900)
This reverts commit bb3f75ca29b3f9f76292a3e02c1c7fbc23ff5794.

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)