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 ece61a1860
commit 447d2365c7
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"