aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiff_ <spiff_@svn>2010-05-23 22:30:53 +0000
committerspiff_ <spiff_@svn>2010-05-23 22:30:53 +0000
commit803d74c32097d9af8a5dd8df4932ba52ec426e77 (patch)
tree1f76b0c6fe72df87e24235675e8f05994c8ca393
parenta16721efae1433347b15e350e42f4be8ece1546f (diff)
fixed: ticket #???? - use the video fanart folder instead of root for the slideshow screensaver if not path has been specified. AMEND ME!
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30470 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/Application.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index bda257b03e..8d5e89eba1 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -4355,7 +4355,13 @@ void CApplication::ActivateScreenSaver(bool forceType /*= false */)
{
// reset our codec info - don't want that on screen
g_infoManager.SetShowCodec(false);
- m_applicationMessenger.PictureSlideShow(g_guiSettings.GetString("screensaver.slideshowpath"), true);
+ CStdString path = g_guiSettings.GetString("screensaver.slideshowpath");
+ if (path.IsEmpty())
+ {
+ path = "special://profile/thumbnails/Video/Fanart";
+ CLog::Log(LOGERROR,"No slideshow screensaver path set, defaulting to the available video fanart");
+ }
+ m_applicationMessenger.PictureSlideShow(path, true);
}
else if (m_screenSaverMode == "_virtual.dim")
return;