Try to skip to next when playing slideshow and current slide is 'unplayable'.
authorulion <ulion2002@gmail.com>
Mon, 8 Apr 2013 20:30:03 +0000 (04:30 +0800)
committerulion <ulion2002@gmail.com>
Thu, 2 May 2013 11:39:47 +0000 (19:39 +0800)
xbmc/pictures/GUIWindowSlideShow.cpp

index 875efe2..399e6b5 100644 (file)
@@ -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