Corrected bug which made every track from file an audio track

This commit is contained in:
Thomas Schmitt 2006-10-28 15:27:30 +00:00
parent 7f4ce1873d
commit 2c557e61d4
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

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