decoder.c
branchtrunk
changeset 29 640ce9201139
parent 25 887faebaba0a
child 33 65ed49cbc08b
     1.1 --- a/decoder.c	Mon Aug 17 20:55:55 2009 +0800
     1.2 +++ b/decoder.c	Mon Aug 17 20:56:48 2009 +0800
     1.3 @@ -220,7 +220,7 @@
     1.4          FsType=0;
     1.5          struct statfs64 sfs;
     1.6          if(!statfs64(Filename,&sfs)) {
     1.7 -          if(Removable()) asprintf(&FsID,"%llx:%llx",sfs.f_blocks,sfs.f_files);
     1.8 +          if(Removable()) FsID=aprintf("%llx:%llx",sfs.f_blocks,sfs.f_files);
     1.9            FsType=sfs.f_type;
    1.10            }
    1.11          else if(errno!=ENOSYS && log) { esyslog("ERROR: can't statfs %s: %s",Filename,strerror(errno)); }
    1.12 @@ -602,7 +602,7 @@
    1.13  void cInfoCache::Action(void)
    1.14  {
    1.15    d(printf("cache: id3 cache purge thread started (pid=%d)\n",getpid()))
    1.16 -  nice(3);
    1.17 +  if(nice(3)<0);
    1.18    lock.Lock();
    1.19    for(int i=0,n=0 ; i<CACHELINES && Running(); i++) {
    1.20      cCacheData *dat=FirstEntry(i);