Made use of isoburn_source_opts.fifo_size
This commit is contained in:
parent
4faad4cb40
commit
e80743182f
@ -2,7 +2,7 @@
|
|||||||
.\" First parameter, NAME, should be all caps
|
.\" First parameter, NAME, should be all caps
|
||||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
.\" other parameters are allowed: see man(7), man(1)
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
.TH XORRISO 1 "October 22, 2007"
|
.TH XORRISO 1 "October 23, 2007"
|
||||||
.\" Please adjust this date whenever revising the manpage.
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
.\"
|
.\"
|
||||||
.\" Some roff macros, for reference:
|
.\" Some roff macros, for reference:
|
||||||
@ -431,10 +431,11 @@ for their own decision.
|
|||||||
If "on" simulate burning or refuse with SORRY event if
|
If "on" simulate burning or refuse with SORRY event if
|
||||||
no simulation is possible. If "on" do not blank or format.
|
no simulation is possible. If "on" do not blank or format.
|
||||||
.TP
|
.TP
|
||||||
> \fB-fs\fR number["k"|"m"]
|
\fB-fs\fR number["k"|"m"]
|
||||||
Set the size of the fifo buffer which smoothens the data
|
Set the size of the fifo buffer which smoothens the data
|
||||||
stream from ISO image generation to media burning. Default
|
stream from ISO image generation to media burning. Default
|
||||||
is 4 MiB. The number may be followed by letter "k" or"m"
|
is 4 MiB, minimum 64 kiB, maximum 1 GiB.
|
||||||
|
The number may be followed by letter "k" or "m"
|
||||||
which means unit is kiB (= 1024) or MiB (= 1024 kiB).
|
which means unit is kiB (= 1024) or MiB (= 1024 kiB).
|
||||||
.TP
|
.TP
|
||||||
\fB\-close\fR "on"|"off"
|
\fB\-close\fR "on"|"off"
|
||||||
|
@ -3659,13 +3659,15 @@ int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag)
|
|||||||
double num;
|
double num;
|
||||||
|
|
||||||
num= Scanf_io_size(size, 0);
|
num= Scanf_io_size(size, 0);
|
||||||
if(num < 4096 || num > 1024.0 * 1024.0 * 1024.0) {
|
if(num < 64*1024 || num > 1024.0 * 1024.0 * 1024.0) {
|
||||||
sprintf(xorriso->info_text, "-fs: wrong size %.f (allowed: %.f - %.f)",
|
sprintf(xorriso->info_text, "-fs: wrong size %.f (allowed: %.f - %.f)",
|
||||||
num, 4096.0, 1024.0 * 1024.0 * 1024.0);
|
num, 64.0 * 1024.0, 1024.0 * 1024.0 * 1024.0);
|
||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
xorriso->fs= num / 2048.0;
|
xorriso->fs= num / 2048.0;
|
||||||
|
if(xorriso->fs * 2048 < num)
|
||||||
|
xorriso->fs++;
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2007.10.23.122349"
|
#define Xorriso_timestamP "2007.10.23.122753"
|
||||||
|
@ -300,8 +300,7 @@ int Xorriso_write_growing(struct XorrisO *xorriso, int flag)
|
|||||||
sopts.gid= xorriso->global_gid;
|
sopts.gid= xorriso->global_gid;
|
||||||
sopts.input_charset= NULL;
|
sopts.input_charset= NULL;
|
||||||
sopts.ouput_charset= NULL;
|
sopts.ouput_charset= NULL;
|
||||||
|
sopts.fifo_size= xorriso->fs * 2048;
|
||||||
/* >>> -fs : isoburn_prepare_disc() needs fifo parameters */
|
|
||||||
|
|
||||||
if (isoburn_prepare_disc(drive, &disc, &sopts) <= 0) {
|
if (isoburn_prepare_disc(drive, &disc, &sopts) <= 0) {
|
||||||
Xorriso_process_msg_queues(xorriso,0);
|
Xorriso_process_msg_queues(xorriso,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user