For Linux 2.4, USB audio : Reduced CD output buffer size to 32 kiB
This commit is contained in:
parent
79adcb520b
commit
cd7b4e6de4
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2007.05.21.185450"
|
||||
#define Cdrskin_timestamP "2007.05.21.185644"
|
||||
|
@ -218,7 +218,8 @@ static unsigned char *get_sector(struct burn_write_opts *opts,
|
||||
seclen += burn_subcode_length(outmode);
|
||||
|
||||
/* ts A61219 : opts->obs is eventually a 32k trigger for DVD */
|
||||
if (out->bytes + (seclen) > BUFFER_SIZE || out->bytes == opts->obs) {
|
||||
if (out->bytes + seclen > BUFFER_SIZE ||
|
||||
out->bytes + seclen > opts->obs) {
|
||||
int err;
|
||||
err = d->write(d, d->nwa, out);
|
||||
if (err == BE_CANCELLED)
|
||||
|
@ -1765,6 +1765,9 @@ void burn_disc_write_sync(struct burn_write_opts *o, struct burn_disc *disc)
|
||||
return;
|
||||
}
|
||||
|
||||
/* ts A70521 : Linux 2.4 USB audio fails with 64 kiB */
|
||||
o->obs = 32*1024; /* buffer flush trigger for sector.c:get_sector() */
|
||||
|
||||
#ifndef Libburn_precheck_write_ruleS
|
||||
/* <<< covered by burn_precheck_write() */
|
||||
if (o->start_byte >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user