projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6fad1
)
Try to skip to next when playing slideshow and current slide is 'unplayable'.
author
ulion
<ulion2002@gmail.com>
Mon, 8 Apr 2013 20:30:03 +0000
(
04:30
+0800)
committer
ulion
<ulion2002@gmail.com>
Thu, 2 May 2013 11:39:47 +0000
(19:39 +0800)
xbmc/pictures/GUIWindowSlideShow.cpp
patch
|
blob
|
history
diff --git
a/xbmc/pictures/GUIWindowSlideShow.cpp
b/xbmc/pictures/GUIWindowSlideShow.cpp
index
875efe2
..
399e6b5
100644
(file)
--- a/
xbmc/pictures/GUIWindowSlideShow.cpp
+++ b/
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