[Tizen] Use broken image when animated image loading is failed.
authorDongsug Song <dongsug.song@samsung.com>
Mon, 14 Jun 2021 08:57:16 +0000 (17:57 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Mon, 14 Jun 2021 08:57:23 +0000 (17:57 +0900)
This reverts commit 649096eb4c66dab6ea5422d76f173581550cfa06.

Change-Id: Ieed3d4e874e02aa7915bedde40a95beef64a66a2

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)