From 90d761d2a6806bc71ddaac55c275accd15b6a09a Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 7 Jan 2009 15:44:30 +0000 Subject: [PATCH] Bug fix: BD-R were not correctly finalized --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/write.c | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 6272ead0..5170bc7b 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.01.06.122808" +#define Cdrskin_timestamP "2009.01.07.154414" diff --git a/libburn/trunk/libburn/write.c b/libburn/trunk/libburn/write.c index ff3298ad..9f2d1ad7 100644 --- a/libburn/trunk/libburn/write.c +++ b/libburn/trunk/libburn/write.c @@ -1159,19 +1159,29 @@ int burn_disc_close_track_dvd_minus_r(struct burn_write_opts *o, int burn_disc_finalize_dvd_plus_r(struct burn_write_opts *o) { struct burn_drive *d = o->drive; + char msg[80]; + sprintf(msg, "Finalizing %s ...", + d->current_profile_text); libdax_msgs_submit(libdax_messenger, d->global_index, 0x00000002, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO, - "Finalizing DVD+R ...", 0, 0); + msg, 0, 0); - /* CLOSE SESSION, 101b, Finalize with minimal radius */ - d->close_track_session(d, 2, 1); /* (2<<1)|1 = 5 */ + if(d->current_profile == 0x41) { /* BD-R */ + /* CLOSE SESSION, 110b, Finalize Disc */ + d->close_track_session(d, 3, 0); /* (3<<1)|0 = 6 */ + } else { + /* CLOSE SESSION, 101b, Finalize with minimal radius */ + d->close_track_session(d, 2, 1); /* (2<<1)|1 = 5 */ + } + sprintf(msg, "... finalizing %s done ", + d->current_profile_text); libdax_msgs_submit(libdax_messenger, d->global_index, 0x00000002, LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO, - "... finalizing DVD+R done ", 0, 0); + msg, 0, 0); return 1; }