data-mp3.c
branchtrunk
changeset 19 306cc35c7faa
parent 0 474a1293c3c0
child 22 93aaf15c145a
     1.1 --- a/data-mp3.c	Sun Jul 06 10:43:56 2008 +0800
     1.2 +++ b/data-mp3.c	Fri Jan 02 13:46:58 2009 +0100
     1.3 @@ -38,6 +38,7 @@
     1.4  
     1.5  const char *imagecache = "/var/cache/images/mp3";
     1.6  const char *imageconv  = "image_convert.sh";
     1.7 +const char *def_usr_img = 0;
     1.8  
     1.9  // image suffixes to search
    1.10  const char *img_suff[] = { "jpg","png","gif",0 };
    1.11 @@ -262,6 +263,9 @@
    1.12    // default image in source basedir
    1.13    if((image=CheckImage("background"))) return true;
    1.14  
    1.15 +  // default user supplied image
    1.16 +  if(def_usr_img && (image=strdup(def_usr_img))) return true;
    1.17 +
    1.18    di(printf("image: no image for %s\n",obj->Path()))
    1.19    return false;
    1.20  }