Bug fix: -file_size_limit did not increase ISO level if necessary. Thanks Mattias Schlenker.
This commit is contained in:
parent
9b8b8aaa52
commit
b5077e0067
@ -690,12 +690,20 @@ int Xorriso_option_file_size_limit(struct XorrisO *xorriso,
|
|||||||
if(new_limit <= 0) {
|
if(new_limit <= 0) {
|
||||||
sprintf(xorriso->info_text, "-file_size_limit: values sum up to %.f",
|
sprintf(xorriso->info_text, "-file_size_limit: values sum up to %.f",
|
||||||
(double) new_limit);
|
(double) new_limit);
|
||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 1);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||||
ret= 0; goto ex;
|
ret= 0; goto ex;
|
||||||
}
|
}
|
||||||
xorriso->file_size_limit= new_limit;
|
xorriso->file_size_limit= new_limit;
|
||||||
ret= 1;
|
ret= 1;
|
||||||
ex:;
|
ex:;
|
||||||
|
if((xorriso->file_size_limit >= ((off_t) 4) * (off_t) (1024 * 1024 * 1024) ||
|
||||||
|
xorriso->file_size_limit == 0) && xorriso->iso_level < 3 && ret > 0) {
|
||||||
|
xorriso->iso_level= 3;
|
||||||
|
xorriso->iso_level_is_default= 0;
|
||||||
|
Xorriso_msgs_submit(xorriso, 0,
|
||||||
|
"-file_size_limit of at least 4 GiB causes ISO level 3",
|
||||||
|
0, "NOTE", 0);
|
||||||
|
}
|
||||||
(*idx)= end_idx;
|
(*idx)= end_idx;
|
||||||
if(ret > 0) {
|
if(ret > 0) {
|
||||||
if(xorriso->file_size_limit > 0)
|
if(xorriso->file_size_limit > 0)
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2016.09.12.091506"
|
#define Xorriso_timestamP "2016.09.12.163816"
|
||||||
|
Loading…
Reference in New Issue
Block a user