Skip to content
Browse files

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

…ayable'.
  • Loading branch information...
1 parent 9d6fad1 commit afa7c0248ff5e3974f4bfeac94435f1f3690f601 @ulion committed Apr 9, 2013
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

0 comments on commit afa7c02

Please sign in to comment.
Something went wrong with that request. Please try again.