diff options
author | Max Kellermann <max@duempel.org> | 2010-12-22 22:25:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:25:37 +0100 |
commit | be3b5199b02fb2c0e1b5c3fe64e7a67e6ad041d7 (patch) | |
tree | 6e473e1980854f07428940bc05f73df209fb6c3c | |
parent | d849a40af67631528ac50d00e9e43143bcdb6221 (diff) | |
download | mpd-be3b5199b02fb2c0e1b5c3fe64e7a67e6ad041d7.tar.gz mpd-be3b5199b02fb2c0e1b5c3fe64e7a67e6ad041d7.tar.xz mpd-be3b5199b02fb2c0e1b5c3fe64e7a67e6ad041d7.zip |
stored_playlist: remove database lookups from spl_load()
Don't look up songs in the database, no caller needs this.
Diffstat (limited to '')
-rw-r--r-- | src/stored_playlist.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c index 36da7c9f7..c75c00727 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -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); |