aboutsummaryrefslogtreecommitdiffstats
path: root/src/storedPlaylist.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-06 18:52:13 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 18:52:13 +0200
commitf1c53fe0eda77bf126d837c0fb93ffcfb1fc9aea (patch)
tree47a2c85685dbf09cc4c1f44f66f8afd11c0daa84 /src/storedPlaylist.c
parent22e40b61cc0166dcda15b7146724928368201b07 (diff)
downloadmpd-f1c53fe0eda77bf126d837c0fb93ffcfb1fc9aea.tar.gz
mpd-f1c53fe0eda77bf126d837c0fb93ffcfb1fc9aea.tar.xz
mpd-f1c53fe0eda77bf126d837c0fb93ffcfb1fc9aea.zip
song: stop storing song_type
We already know if a song is a URL or not based on whether it has parentDir defined or not. Hopefully one day in the future we can drop HTTP support from MPD entirely when an HTTP filesystem comes along and we can access streams via open(2).
Diffstat (limited to '')
-rw-r--r--src/storedPlaylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c
index 512a29b7c..0f10268d0 100644
--- a/src/storedPlaylist.c
+++ b/src/storedPlaylist.c
@@ -294,7 +294,7 @@ appendSongToStoredPlaylistByPath(const char *utf8path, Song *song)
s = utf8_to_fs_charset(path_max_tmp2, get_song_url(path_max_tmp, song));
- if (playlist_saveAbsolutePaths && song->type == SONG_TYPE_FILE)
+ if (playlist_saveAbsolutePaths && song_is_file(song))
s = rmp2amp_r(path_max_tmp, s);
fprintf(file, "%s\n", s);