From d08658833a0b6563ae03200d15bf87aecd628ec4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 6 Apr 2014 11:10:29 +0000 Subject: [PATCH] Bug fix: Minimum drive buffer fill was measured before the buffer could get full --- cdrskin/cdrskin.c | 9 +++++---- cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index f46fb87..e5fa768 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -3148,7 +3148,7 @@ set_severities:; int major, minor, micro; printf( -"Cdrecord 2.01a27 Emulation. Copyright (C) 2006-2013, see libburnia-project.org\n"); +"Cdrecord 2.01a27 Emulation. Copyright (C) 2006-2014, see libburnia-project.org\n"); if(o->fallback_program[0]) { char *hargv[2]; @@ -6691,9 +6691,10 @@ thank_you_for_patience:; if(p->buffer_capacity>0) buffer_fill= (double) (p->buffer_capacity - p->buffer_available)*100.0 / (double) p->buffer_capacity; - - if(buffer_fill<*min_buffer_fill) - *min_buffer_fill= buffer_fill; + + if(p->buffered_bytes > p->buffer_capacity) + if(buffer_fill < *min_buffer_fill) + *min_buffer_fill= buffer_fill; printf("%s%sTrack %-2.2d: %s MB written %s[buf %3d%%] %4.1fx.%s", skin->pacifier_with_newline ? "" : "\r", diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 05670b8..d3cd59c 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2014.03.17.221810" +#define Cdrskin_timestamP "2014.04.06.111004"