New parameters "obs_pad" and "bdr_obs_exempt" for -dvd_obs
This commit is contained in:
@ -349,10 +349,27 @@ int Xorriso_option_dvd_obs(struct XorrisO *xorriso, char *obs, int flag)
|
||||
{
|
||||
double num;
|
||||
|
||||
if(strcmp(obs, "default") == 0)
|
||||
if(strcmp(obs, "obs_pad") == 0) {
|
||||
xorriso->do_obs_pad= 1;
|
||||
return(1);
|
||||
} else if(strcmp(obs, "no_obs_pad") == 0) {
|
||||
xorriso->do_obs_pad= 0;
|
||||
return(1);
|
||||
} else if(strcmp(obs, "bdr_obs_exempt")== 0) {
|
||||
xorriso->bdr_obs_exempt= 1;
|
||||
return(1);
|
||||
} else if(strcmp(obs, "no_bdr_obs_exempt")== 0) {
|
||||
xorriso->bdr_obs_exempt= 0;
|
||||
return(1);
|
||||
} else if(strcmp(obs, "default") == 0) {
|
||||
num= 0;
|
||||
else
|
||||
} else if(obs[0] >= '0' && obs[0] <= '9') {
|
||||
num = Scanf_io_size(obs,0);
|
||||
} else {
|
||||
sprintf(xorriso->info_text, "-dvd_obs : Unrecognized parameter.");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(0);
|
||||
}
|
||||
if(num != 0 && num != 32768 && num != 65536) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-dvd_obs : Bad size. Acceptable are 0, 32k, 64k");
|
||||
@ -2241,8 +2258,9 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" [:\"min_usec=\"number][:\"max_usec\"=number]",
|
||||
" [:\"timeout_sec=\"number]",
|
||||
" Keep drive buffer hungry to ease concurrent burn run.",
|
||||
" -dvd_obs \"default\"|\"32k\"|\"64k\"",
|
||||
" Set number of bytes per DVD/BD write operation.",
|
||||
" -dvd_obs \"default\"|\"32k\"|\"64k\"|\"obs_pad\"|\"bdr_obs_exempt\"",
|
||||
" Set number of bytes per DVD/BD write operation or control",
|
||||
" end alignment padding with DAO DVD-R[W] or BD-R.",
|
||||
" -use_immed_bit \"on\"|\"off\"|\"default\"",
|
||||
" Control whether long running SCSI commands shall run",
|
||||
" asynchronously with progress messages.",
|
||||
|
Reference in New Issue
Block a user