Forced each track to have a minimum size of 600 kB

This commit is contained in:
Thomas Schmitt 2006-08-29 10:06:05 +00:00
parent 2ef9c90d6c
commit 2224ff718a
1 changed files with 10 additions and 0 deletions

View File

@ -682,6 +682,10 @@ struct CdrfifO {
/* --------------------------------------------------------------------- */
/** cdrecord pads up to 600 kB in any case.
libburn yields blank result on tracks <~ 600 kB */
static double Cdrtrack_minimum_sizE= 600*1024;
/** This structure represents a track resp. a data source */
struct CdrtracK {
@ -830,6 +834,12 @@ int Cdrtrack_open_source_path(struct CdrtracK *track, int *fd, int flag)
}
}
}
if(track->fixed_size<Cdrtrack_minimum_sizE) {
fprintf(stderr,
"cdrskin: NOTE : Enforcing minimum track size of %.f bytes\n",
Cdrtrack_minimum_sizE);
track->fixed_size= Cdrtrack_minimum_sizE;
}
track->source_fd= *fd;
return(*fd>=0);
}