Corrected bug which made every track from file an audio track

trunk@386
Thomas Schmitt 16 years ago
parent ece61a1860
commit 447d2365c7
  1. 4
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -939,10 +939,10 @@ int Cdrtrack_extract_audio(struct CdrtracK *track, int *fd, off_t *xtr_size,
return(0);
l= strlen(track->source_path);
if(l>=4)
if(strcmp(track->source_path+l-4,".wav")!=0)
if(strcmp(track->source_path+l-4,".wav")==0)
ok= 1;
if(l>=3)
if(strcmp(track->source_path+l-3,".au")!=0)
if(strcmp(track->source_path+l-3,".au")==0)
ok= 1;
if(!ok)
return(0);

@ -1 +1 @@
#define Cdrskin_timestamP "2006.10.28.115213"
#define Cdrskin_timestamP "2006.10.28.151521"

Loading…
Cancel
Save