Added forgotten read/write counters in burn_stdio_write_track()
This commit is contained in:
parent
43a415a081
commit
6f2b1c214e
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2007.09.06.094402"
|
#define Cdrskin_timestamP "2007.09.06.095954"
|
||||||
|
@ -1867,6 +1867,7 @@ int burn_stdio_write_track(struct burn_write_opts *o, struct burn_session *s,
|
|||||||
eof_seen = 1;
|
eof_seen = 1;
|
||||||
ret = bufsize;
|
ret = bufsize;
|
||||||
}
|
}
|
||||||
|
t->sourcecount += ret;
|
||||||
ret = burn_stdio_write(fd, buf, ret, d, 0);
|
ret = burn_stdio_write(fd, buf, ret, d, 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
return ret;
|
return ret;
|
||||||
@ -1874,6 +1875,8 @@ int burn_stdio_write_track(struct burn_write_opts *o, struct burn_session *s,
|
|||||||
d->progress.sector = (w_count + (off_t) ret) / (off_t) 2048;
|
d->progress.sector = (w_count + (off_t) ret) / (off_t) 2048;
|
||||||
if (open_ended)
|
if (open_ended)
|
||||||
d->progress.sectors = d->progress.sector;
|
d->progress.sectors = d->progress.sector;
|
||||||
|
t->writecount = w_count;
|
||||||
|
t->written_sectors = w_count / 2048;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* >>> write t->tail zeros */;
|
/* >>> write t->tail zeros */;
|
||||||
|
Loading…
Reference in New Issue
Block a user