diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-06 18:52:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-06 18:52:13 +0200 |
commit | f1c53fe0eda77bf126d837c0fb93ffcfb1fc9aea (patch) | |
tree | 47a2c85685dbf09cc4c1f44f66f8afd11c0daa84 /src/song_save.c | |
parent | 22e40b61cc0166dcda15b7146724928368201b07 (diff) | |
download | mpd-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 'src/song_save.c')
-rw-r--r-- | src/song_save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song_save.c b/src/song_save.c index 1daf2fe32..4c40a262c 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -112,7 +112,7 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv, insertSongIntoList(sv, song); song = song_alloc(buffer + strlen(SONG_KEY), - SONG_TYPE_FILE, parentDir); + parentDir); } else if (*buffer == 0) { /* ignore empty lines (starting with '\0') */ } else if (song == NULL) { |