diff -r 708c6d199dbf -r 306cc35c7faa data-mp3.c --- a/data-mp3.c Sun Jul 06 10:43:56 2008 +0800 +++ b/data-mp3.c Fri Jan 02 13:46:58 2009 +0100 @@ -38,6 +38,7 @@ const char *imagecache = "/var/cache/images/mp3"; const char *imageconv = "image_convert.sh"; +const char *def_usr_img = 0; // image suffixes to search const char *img_suff[] = { "jpg","png","gif",0 }; @@ -262,6 +263,9 @@ // default image in source basedir if((image=CheckImage("background"))) return true; + // default user supplied image + if(def_usr_img && (image=strdup(def_usr_img))) return true; + di(printf("image: no image for %s\n",obj->Path())) return false; }