Only update texture when was loaded for reload.
authorulion <ulion2002@gmail.com>
Mon, 8 Apr 2013 21:26:14 +0000 (05:26 +0800)
committerulion <ulion2002@gmail.com>
Thu, 2 May 2013 11:39:48 +0000 (19:39 +0800)
xbmc/pictures/GUIWindowSlideShow.cpp

index 8876597..e574796 100644 (file)
@@ -1081,7 +1081,7 @@ void CGUIWindowSlideShow::OnLoadPic(int iPic, int iSlideNumber, const CStdString
     CLog::Log(LOGDEBUG, "Finished background loading slot %d, %d: %s", iPic, iSlideNumber, m_slides->Get(iSlideNumber)->GetPath().c_str());
     if (m_bReloadImage)
     {
-      if (m_Image[m_iCurrentPic].IsLoaded() && m_Image[m_iCurrentPic].SlideNumber() != iSlideNumber)
+      if (!m_Image[m_iCurrentPic].IsLoaded() || m_Image[m_iCurrentPic].SlideNumber() != iSlideNumber)
       { // wrong image (ie we finished loading the next image, not the current image)
         delete pTexture;
         return;