Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try to skip to next when playing slideshow and current slide is 'unpl…

…ayable'.
  • Loading branch information...
commit afa7c0248ff5e3974f4bfeac94435f1f3690f601 1 parent 9d6fad1
@ulion authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/pictures/GUIWindowSlideShow.cpp
View
8 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.