fixed error when not finding cover art

This commit is contained in:
Ron Pedde
2004-04-17 21:40:47 +00:00
parent ffee7a4acf
commit 40169a7e91
2 changed files with 7 additions and 3 deletions

View File

@@ -285,7 +285,7 @@ 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))) {
if((config.artfilename) && (img_fd=da_get_image_fd(pmp3->path) != -1)) {
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);