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/directory.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/directory.c')
-rw-r--r-- | src/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index 0ce533966..8eb18d463 100644 --- a/src/directory.c +++ b/src/directory.c @@ -617,7 +617,7 @@ addToDirectory(Directory * directory, const char *name) Song *song; const char *shortname = mpd_basename(name); - if (!(song = newSong(shortname, SONG_TYPE_FILE, directory))) + if (!(song = newSong(shortname, directory))) return -1; songvec_add(&directory->songs, song); LOG("added %s\n", name); |