Skip to content

Commit

Permalink
musicdb: make sure the items' path is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Oct 8, 2012
1 parent 2f3e1a3 commit 4431e45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/music/MusicDatabase.cpp
Expand Up @@ -2851,6 +2851,7 @@ bool CMusicDatabase::GetCommonNav(const CStdString &strBaseDir, const CStdString

m_pDS->next();
}
items.SetPath(musicUrl.ToString());

// cleanup
m_pDS->close();
Expand Down Expand Up @@ -3028,6 +3029,7 @@ bool CMusicDatabase::GetArtistsByWhere(const CStdString& strBaseDir, const Filte
CLog::Log(LOGERROR, "%s - out of memory getting listing (got %i)", __FUNCTION__, items.Size());
}
}
items.SetPath(musicUrl.ToString());

// cleanup
m_pDS->close();
Expand Down Expand Up @@ -3219,6 +3221,7 @@ bool CMusicDatabase::GetAlbumsByWhere(const CStdString &baseDir, const Filter &f
CLog::Log(LOGERROR, "%s - out of memory getting listing (got %i)", __FUNCTION__, items.Size());
}
}
items.SetPath(musicUrl.ToString());

// cleanup
m_pDS->close();
Expand Down Expand Up @@ -3318,6 +3321,8 @@ bool CMusicDatabase::GetSongsByWhere(const CStdString &baseDir, const Filter &fi
return (items.Size() > 0);
}
}
items.SetPath(musicUrl.ToString());

// cleanup
m_pDS->close();
CLog::Log(LOGDEBUG, "%s(%s) - took %d ms", __FUNCTION__, filter.where.c_str(), XbmcThreads::SystemClockMillis() - time);
Expand Down

0 comments on commit 4431e45

Please sign in to comment.