Permalink
Browse files

Only reload current image when not switching to next and current is n…

…ot video.
  • Loading branch information...
1 parent 1199a0c commit 6eb4757cf139407b6d69f778428f62ebe842e034 @ulion committed Apr 8, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -492,7 +492,12 @@ void CGUIWindowSlideShow::Process(unsigned int currentTime, CDirtyRegionList &re
// if we're reloading current image
if (m_bReloadImage)
{
- if (m_Image[m_iCurrentPic].IsLoaded() && !m_Image[1 - m_iCurrentPic].IsLoaded() && !m_pBackgroundLoader->IsLoading() && !m_bWaitForNextPic && !m_slides->Get(m_iCurrentSlide)->IsVideo())
+ if (m_bWaitForNextPic || m_slides->Get(m_iCurrentSlide)->IsVideo())
+ {
+ // not reload current if we already wait the next or curent one is video thumb.
+ m_bReloadImage = false;
+ }
+ else if (m_Image[m_iCurrentPic].IsLoaded() && !m_Image[1 - m_iCurrentPic].IsLoaded() && !m_pBackgroundLoader->IsLoading())
{ // reload the image if we need to
CLog::Log(LOGDEBUG, "Reloading the current image %s at zoom level %i", m_slides->Get(m_iCurrentSlide)->GetPath().c_str(), m_iZoomFactor);
// first, our maximal size for this zoom level

0 comments on commit 6eb4757

Please sign in to comment.