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:
parent
d849a40af6
commit
be3b5199b0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue