Fixed: Music player loading non-existing files into playlist.

--HG--
branch : develop
This commit is contained in:
Nimetu 2017-03-25 15:00:43 +02:00
parent 86adf11579
commit 2eab033283

View file

@ -353,6 +353,11 @@ public:
continue;
}
if (!CFile::fileExists(filenames[i])) {
nlwarning("Ignore non-existing file '%s'", filenames[i].c_str());
continue;
}
CMusicPlayer::CSongs song;
song.Filename = filenames[i];
SoundMngr->getMixer()->getSongTitle(filenames[i], song.Title, song.Length);