stored_playlist: remove database lookups from spl_load()

Don't look up songs in the database, no caller needs this.
This commit is contained in:
Max Kellermann 2010-12-22 22:25:02 +01:00
parent d849a40af6
commit be3b5199b0

View File

@ -204,18 +204,12 @@ spl_load(const char *utf8path)
if (!uri_has_scheme(s)) { if (!uri_has_scheme(s)) {
char *path_utf8; char *path_utf8;
struct song *song;
path_utf8 = map_fs_to_utf8(s); path_utf8 = map_fs_to_utf8(s);
if (path_utf8 == NULL) if (path_utf8 == NULL)
continue; continue;
song = db_get_song(path_utf8); s = path_utf8;
g_free(path_utf8);
if (song == NULL)
continue;
s = song_get_uri(song);
} else } else
s = g_strdup(s); s = g_strdup(s);