Allowed chunk_size= values up to 1024s

This commit is contained in:
Thomas Schmitt 2012-02-01 16:31:48 +00:00
parent 475dc5909e
commit 4d7be980c0
2 changed files with 8 additions and 5 deletions

View File

@ -2114,9 +2114,12 @@ int Xorriso_check_interval(struct XorrisO *xorriso, struct SpotlisT *spotlist,
int tag_type= 0, valid, was_sb_tag= 0, in_track_gap= 0;
char *comparison= "", *sev_text= "DEBUG", *tag_type_name= "";
Xorriso_alloc_meM(data, char, 64*1024);
if(read_chunk > 32)
read_chunk= 32;
if(read_chunk > 1024)
read_chunk= 1024;
else if(read_chunk < 1)
read_chunk= 1;
Xorriso_alloc_meM(data, char, 2 * read_chunk * 1024);
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
"on attempt to check media readability",
@ -2663,7 +2666,7 @@ libburn_whole_disc:;
Xorriso_pacifier_callback(xorriso, "blocks read",
xorriso->pacifier_count, xorriso->pacifier_total, "",
1 | 8 | 16 | 32);
1 | 8 | 16 | 32 | (128 * (job->use_dev == 1)));
ret= 1;
ex:;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.02.01.162935"
#define Xorriso_timestamP "2012.02.01.163200"