From bb1c32af94c42cda454a0ba2a2979626b96b53fd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Oct 2008 18:18:18 -0700 Subject: 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). --- src/storedPlaylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storedPlaylist.c') diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c index c1452ddb9..265301392 100644 --- a/src/storedPlaylist.c +++ b/src/storedPlaylist.c @@ -297,7 +297,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); -- cgit v1.2.3