Permalink
Browse files

Change CGUIWindowSlideShow::Select() to use same condition with code

loading first picture in Process().
  • Loading branch information...
ulion committed Apr 9, 2013
1 parent 746e7b4 commit c8167f9480f508f2dfaa292d354501de516ed406
Showing with 7 additions and 4 deletions.
  1. +7 −4 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -338,14 +338,17 @@ void CGUIWindowSlideShow::Select(const CStdString& strPicture)
if (item->GetPath() == strPicture)
{
m_iDirection = 1;
- if (IsActive())
- m_iNextSlide = i;
- else
+ if (!m_Image[m_iCurrentPic].IsLoaded() && (!m_pBackgroundLoader || !m_pBackgroundLoader->IsLoading()))
{
+ // will trigger loading current slide when next Process call.
m_iCurrentSlide = i;
m_iNextSlide = GetNextSlide();
}
- m_bLoadNextPic = true;
+ else
+ {
+ m_iNextSlide = i;
+ m_bLoadNextPic = true;
+ }
return ;
}
}

0 comments on commit c8167f9

Please sign in to comment.