diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-05 18:18:18 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-05 18:25:25 -0700 |
commit | bb1c32af94c42cda454a0ba2a2979626b96b53fd (patch) | |
tree | 3813323e9b9cd6450e062b2d2bf5238fc99fcb84 /src/directory.c | |
parent | 36eba830fc097279f568e801b2d2a35a08004717 (diff) | |
download | mpd-bb1c32af94c42cda454a0ba2a2979626b96b53fd.tar.gz mpd-bb1c32af94c42cda454a0ba2a2979626b96b53fd.tar.xz mpd-bb1c32af94c42cda454a0ba2a2979626b96b53fd.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/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index de4532e75..5dbab5018 100644 --- a/src/directory.c +++ b/src/directory.c @@ -604,7 +604,7 @@ static int 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); |