From b273dd9178afc13b9addbd3d38697cebf2077bb9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 25 Feb 2010 07:04:52 +0000 Subject: [PATCH] Corrected optional speed curb for stdio: drives. Was damaged by revision 2903. --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/write.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 47c38896..07a38389 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.02.22.134904" +#define Cdrskin_timestamP "2010.02.25.070635" diff --git a/libburn/trunk/libburn/write.c b/libburn/trunk/libburn/write.c index 78ffb7f9..cf29ebfa 100644 --- a/libburn/trunk/libburn/write.c +++ b/libburn/trunk/libburn/write.c @@ -2265,8 +2265,9 @@ int burn_stdio_write_track(struct burn_write_opts *o, struct burn_session *s, prev_sync_sector = d->progress.sector; if (!o->simulate) burn_stdio_sync_cache(d->stdio_fd, d, 1); - burn_stdio_slowdown(d, &prev_time, 512 * 2, 0); } + if ((d->progress.sector % 512) == 0) + burn_stdio_slowdown(d, &prev_time, 512 * 2, 0); } /* Pad up buffer to next full o->obs (usually 32 kB) */