media library: fix infinite loop if listallinfo fails
This commit is contained in:
@@ -283,7 +283,7 @@ void MediaLibrary::update()
|
||||
{
|
||||
m_albums_update_request = false;
|
||||
std::map<std::tuple<std::string, std::string, std::string>, time_t> albums;
|
||||
for (MPD::SongIterator s = Mpd.GetDirectoryRecursive("/"), end; s != end; ++s)
|
||||
for (MPD::SongIterator s = getDatabaseIterator(Mpd), end; s != end; ++s)
|
||||
{
|
||||
std::string tag;
|
||||
unsigned idx = 0;
|
||||
@@ -326,7 +326,7 @@ void MediaLibrary::update()
|
||||
std::map<std::string, time_t> tags;
|
||||
if (Config.media_library_sort_by_mtime)
|
||||
{
|
||||
for (MPD::SongIterator s = Mpd.GetDirectoryRecursive("/"), end; s != end; ++s)
|
||||
for (MPD::SongIterator s = getDatabaseIterator(Mpd), end; s != end; ++s)
|
||||
{
|
||||
std::string tag;
|
||||
unsigned idx = 0;
|
||||
|
||||
Reference in New Issue
Block a user