screensaver: just add mp3-?.jpg when using DATADIR "/neutrino/icons" ...

... to get the same behavior as usual


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4cf5e8ffd1
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-24 (Wed, 24 Dec 2014)

Origin message was:
------------------
- screensaver: just add mp3-?.jpg when using DATADIR "/neutrino/icons" ...

... to get the same behavior as usual


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-12-24 23:21:57 +01:00
parent 60f41ce982
commit f051971c61

View File

@@ -161,6 +161,18 @@ bool CScreenSaver::ReadDir()
str += "/"; str += "/";
str += (*dirpointer).d_name; str += (*dirpointer).d_name;
if ((std::string) dir_name == DATADIR "/neutrino/icons")
{
/*
backward compatiblity:
just add the standard mp3-?.jpg pictures
to get the same behavior as usual
*/
if (str.find("/mp3-") == string::npos)
continue;
}
v_bg_files.push_back(str); v_bg_files.push_back(str);
} }
} }