ignore errors while scaning recursive directories trunk
authornathan
Sat, 24 Oct 2009 11:31:53 +0800
branchtrunk
changeset 32cea1b4f741be
parent 31 566c0f412764
child 33 65ed49cbc08b
ignore errors while scaning recursive directories
HISTORY
data.c
     1.1 --- a/HISTORY	Sat Oct 24 11:20:45 2009 +0800
     1.2 +++ b/HISTORY	Sat Oct 24 11:31:53 2009 +0800
     1.3 @@ -1,7 +1,7 @@
     1.4  VDR Plugin Revision History
     1.5  ---------------------------
     1.6  
     1.7 -..2007: Version 0.10.2 (vdr 1.6.0-2)
     1.8 +..2009: Version 0.10.2 (vdr 1.6.0-2)
     1.9  - Fixed a segfault while direct song selection. Thanks to Halim Sahin for
    1.10    reporting.
    1.11  - Fixed possible division by zero in libsndfile decoder.
    1.12 @@ -9,8 +9,12 @@
    1.13  - Added commandline option for a user defined default background image.
    1.14  - Made the handling of song information (e.g. ID3) UTF-8 aware. The infocache
    1.15    file is kept in UTF-8 format now.
    1.16 +- Ignore errors while scaning recursive directories. Patch provided by Steffen
    1.17 +  Kaiser.
    1.18  - Map audio-button to "switch_audio" and next/prev-button to "seek_chapter"
    1.19    slave command in MPlayer replay. Suggested by Martin Dauskardt.
    1.20 +- Set the environment variable DVB_DEVICE with the number of the primary device
    1.21 +  before calling mplayer.sh. Based on a patch from Marco Schinkel.
    1.22  - Use blocking IO for OSS output for improved compatibility. Suggested by Martin
    1.23    Dauskardt.
    1.24  - Backward compatible on-the-fly creation of the i18n.c file using Udo Richter's
     2.1 --- a/data.c	Sat Oct 24 11:20:45 2009 +0800
     2.2 +++ b/data.c	Sat Oct 24 11:31:53 2009 +0800
     2.3 @@ -124,9 +124,8 @@
     2.4        if(S_ISDIR(st.st_mode)) {
     2.5          if(type==stFile && recursiv) {
     2.6            char *s=aprintf(subdir ? "%2$s/%1$s":"%s",e->d_name,subdir);
     2.7 -          res=ScanDir(src,s,type,spec,excl,recursiv);
     2.8 +          ScanDir(src,s,type,spec,excl,recursiv);
     2.9            free(s);
    2.10 -          if(!res) break;
    2.11            continue;
    2.12            }
    2.13          if(type!=stDir) continue;