diff --git a/src/main.c b/src/main.c index 8c975e6f..209ca5c2 100644 --- a/src/main.c +++ b/src/main.c @@ -285,8 +285,9 @@ void daap_handler(WS_CONNINFO *pwsc) { if(!offset) config.stats.songs_served++; /* FIXME: remove stat races */ - if((config.artfilename) && ((img_fd=da_get_image_fd(pmp3->path)) != -1) && - (!offset)) { + if((config.artfilename) && + ((img_fd=da_get_image_fd(pmp3->path)) != -1) && (!offset) && + (strncasecmp(pmp3->type,".mp3",4) ==0)) { DPRINTF(ERR_INFO,"Dynamically attaching artwork to %s (fd %d)\n", pmp3->fname, img_fd); da_attach_image(img_fd, pwsc->fd, file_fd, offset); @@ -490,6 +491,9 @@ int main(int argc, char *argv[]) { } } + /* block signals and set up the signal handling thread */ + + if((config.use_mdns) && (!parseonly)) { DPRINTF(ERR_LOG,"Starting rendezvous daemon\n");