Skip to content

Commit

Permalink
Try to skip to next when playing slideshow and current slide is 'unpl…
Browse files Browse the repository at this point in the history
…ayable'.
  • Loading branch information
ulion committed May 2, 2013
1 parent 9d6fad1 commit afa7c02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/pictures/GUIWindowSlideShow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,14 @@ void CGUIWindowSlideShow::Process(unsigned int currentTime, CDirtyRegionList &re
}

bool bSlideShow = m_bSlideShow && !m_bPause && !m_bPlayingVideo;
if (bSlideShow && m_slides->Get(m_iCurrentSlide)->HasProperty("unplayable"))
{
m_iNextSlide = GetNextSlide();
if (m_iCurrentSlide == m_iNextSlide)
return;
m_iCurrentSlide = m_iNextSlide;
m_iNextSlide = GetNextSlide();
}

if (m_bErrorMessage)
{ // we have an error when loading either the current or next picture
Expand Down

0 comments on commit afa7c02

Please sign in to comment.