From 9343e1dd951a28a68edf858964afc851409dd5e4 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 --- libburn/trunk/cdrskin/cdrskin.c | 9 +++++---- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin.c b/libburn/trunk/cdrskin/cdrskin.c index f46fb870..e5fa768d 100644 --- a/libburn/trunk/cdrskin/cdrskin.c +++ b/libburn/trunk/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/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 05670b80..d3cd59c8 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2014.03.17.221810" +#define Cdrskin_timestamP "2014.04.06.111004"