Commit be3b5199 authored by Max Kellermann's avatar Max Kellermann

stored_playlist: remove database lookups from spl_load()

Don't look up songs in the database, no caller needs this.
parent d849a40a
......@@ -204,18 +204,12 @@ spl_load(const char *utf8path)
if (!uri_has_scheme(s)) {
char *path_utf8;
struct song *song;
path_utf8 = map_fs_to_utf8(s);
if (path_utf8 == NULL)
continue;
song = db_get_song(path_utf8);
g_free(path_utf8);
if (song == NULL)
continue;
s = song_get_uri(song);
s = path_utf8;
} else
s = g_strdup(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment