From 18ebab674be878b089de4b57c81ce8b31246fa4d Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 21 Mar 2011 09:02:58 +0000 Subject: [PATCH] Corrected nwa computation for drive role 5 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 1c55139b..1110ccaf 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.03.19.222152" +#define Cdrskin_timestamP "2011.03.21.090313" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index 706d6fa2..3d431d77 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/libburn/drive.c @@ -338,7 +338,7 @@ int burn_drive_grab(struct burn_drive *d, int le) stbuf.st_size > 0) { d->status = BURN_DISC_APPENDABLE; d->role_5_nwa = stbuf.st_size / 2048 + - !!(stbuf.st_size % 2049); + !!(stbuf.st_size % 2048); } else d->status = BURN_DISC_BLANK; } else { @@ -1566,7 +1566,7 @@ int burn_drive_grab_dummy(struct burn_drive_info *drive_infos[], char *fname) d->status = BURN_DISC_APPENDABLE; d->block_types[BURN_WRITE_SAO] = 0; d->role_5_nwa = stbuf.st_size / 2048 + - !!(stbuf.st_size % 2049); + !!(stbuf.st_size % 2048); } else { d->status = BURN_DISC_BLANK; d->block_types[BURN_WRITE_SAO] =