aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2005-09-08 21:08:02 +0000
committerQball Cow <qball@qballcow.nl>2005-09-08 21:08:02 +0000
commitedcfbef90da5f3a6abf60559042d61d0f3d765d7 (patch)
treecd84b4a7b53e2ee90588a57bc581c34390b9dadd /src/song.c
parentbc666a9fc6dbd25bc9fd8cfe20d46bab9582682b (diff)
downloadmpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.tar.gz
mpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.tar.xz
mpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.zip
Patch to make the configure flag for mpd-mad and mpd-libid3tag more logic (from ticho)
git-svn-id: https://svn.musicpd.org/mpd/trunk@3477 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 91714f01c..d8c265879 100644
--- a/src/song.c
+++ b/src/song.c
@@ -49,7 +49,10 @@ Song * newNullSong() {
Song * newSong(char * url, int type, Directory * parentDir) {
Song * song = NULL;
- if(strchr(url, '\n')) return NULL;
+ if(strchr(url, '\n')) {
+ DEBUG("newSong: '%s' is not a valid uri\n");
+ return NULL;
+ }
song = newNullSong();
@@ -104,6 +107,8 @@ Song * addSongToList(SongList * list, char * url, char * utf8path,
case SONG_TYPE_URL:
song = newSong(url, songType, parentDirectory);
break;
+ default:
+ DEBUG("addSongToList: Trying to add an invalid song type\n");
}
if(song==NULL) return NULL;