diff options
-rw-r--r-- | src/ls.c | 8 | ||||
-rw-r--r-- | src/song.c | 2 |
2 files changed, 4 insertions, 6 deletions
@@ -278,11 +278,9 @@ InputPlugin * hasMusicSuffix(char * utf8file) { InputPlugin * isMusic(char * utf8file, time_t * mtime) { if(isFile(utf8file,mtime)) { - InputPlugin *plugin = hasMusicSuffix(utf8file); - if (plugin == NULL) { - DEBUG("isMusic: %s is not a supported music file\n"); - } - return plugin; + InputPlugin * plugin = hasMusicSuffix(utf8file); + if (plugin != NULL) + return plugin; } DEBUG("isMusic: %s is not a valid file\n",utf8file); return NULL; diff --git a/src/song.c b/src/song.c index d8c265879..9a2c8d67d 100644 --- a/src/song.c +++ b/src/song.c @@ -50,7 +50,7 @@ Song * newSong(char * url, int type, Directory * parentDir) { Song * song = NULL; if(strchr(url, '\n')) { - DEBUG("newSong: '%s' is not a valid uri\n"); + DEBUG("newSong: '%s' is not a valid uri\n",url); return NULL; } |