Made chunksize=32s default with -check_media
This commit is contained in:
@ -2768,7 +2768,7 @@ ex:;
|
||||
if(async_md5) {
|
||||
Xorriso__end_slave_md5(&state, 10000, 0);
|
||||
sprintf(xorriso->info_text,
|
||||
"async_chunks=%d , chunk_size=%d , w_sleeps: %.f , r_sleeps: %.f",
|
||||
"async_chunks=%d , chunk_size=%ds , w_sleeps: %.f , r_sleeps: %.f",
|
||||
state.num_chunks, read_chunk, (double) state.w_sleeps,
|
||||
(double) state.r_sleeps);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
|
||||
@ -2790,7 +2790,7 @@ ex:;
|
||||
int Xorriso_check_media(struct XorrisO *xorriso, struct SpotlisT **spotlist,
|
||||
struct CheckmediajoB *job, int flag)
|
||||
{
|
||||
int media_blocks= 0, read_chunk= 16, ret, mode, start_lba= 0;
|
||||
int media_blocks= 0, read_chunk= 32, ret, mode, start_lba= 0;
|
||||
int blocks, os_errno, i, j, last_track_end= -1, track_blocks, track_lba;
|
||||
int num_sessions, num_tracks, declare_untested= 0, md5_start;
|
||||
int read_capacity= -1, end_lba, hret, count, quality, profile_no;
|
||||
@ -2816,8 +2816,7 @@ int Xorriso_check_media(struct XorrisO *xorriso, struct SpotlisT **spotlist,
|
||||
ret = burn_disc_get_profile(drive, &profile_no, profile_name);
|
||||
if(ret <= 0)
|
||||
profile_no= 0;
|
||||
if(profile_no >= 0x40 && profile_no <= 0x43) /* BD-ROM, BD-R, BD-RE */
|
||||
read_chunk= 32;
|
||||
|
||||
if(job->min_block_size != 0)
|
||||
read_chunk= job->min_block_size;
|
||||
|
||||
|
Reference in New Issue
Block a user