Issue warning after writing a BD-R with more than 300 sessions

This commit is contained in:
Thomas Schmitt 2010-10-15 19:17:37 +00:00
parent de8352125c
commit 0125ee074e
3 changed files with 11 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.09.28.101043" #define Cdrskin_timestamP "2010.10.15.191717"

View File

@ -560,7 +560,7 @@ Range "scdbackup" : 0x00020000 to 0x0002ffff
0x00020178 (DEBUG,HIGH) = Write thread ended 0x00020178 (DEBUG,HIGH) = Write thread ended
0x00020179 (FAILURE,HIGH) = Offset source start address is before end of previous source 0x00020179 (FAILURE,HIGH) = Offset source start address is before end of previous source
0x0002017a (FAILURE,HIGH) = Expected offset source object as parameter 0x0002017a (FAILURE,HIGH) = Expected offset source object as parameter
0x0002017b (WARNING,HIGH) = Sequential BD-R media likely to soon fail writing
libdax_audioxtr: libdax_audioxtr:
0x00020200 (SORRY,HIGH) = Cannot open audio source file 0x00020200 (SORRY,HIGH) = Cannot open audio source file

View File

@ -385,9 +385,9 @@ struct cue_sheet *burn_create_toc_entries(struct burn_write_opts *o,
runtime = nwa-150; runtime = nwa-150;
#endif #endif
sheet = malloc(sizeof(struct cue_sheet)); sheet = calloc(1, sizeof(struct cue_sheet));
/* ts A61009 : react on failures of malloc(), add_cue_sheet() /* ts A61009 : react on failures of calloc(), add_cue_sheet()
type_to_form() */ type_to_form() */
if (sheet == NULL) { if (sheet == NULL) {
libdax_msgs_submit(libdax_messenger, -1, 0x00020111, libdax_msgs_submit(libdax_messenger, -1, 0x00020111,
@ -2006,7 +2006,13 @@ ex:;
burn_drive_mark_unready(d); burn_drive_mark_unready(d);
burn_drive_inquire_media(d); burn_drive_inquire_media(d);
/* <<< d->busy = BURN_DRIVE_IDLE; */ if (d->current_profile == 0x41 && d->complete_sessions >= 300) {
sprintf(msg, "Sequential BD-R media now contains %d sessions. It is likely to soon fail writing.", d->complete_sessions);
libdax_msgs_submit(libdax_messenger, d->global_index,
0x0002017b, LIBDAX_MSGS_SEV_WARNING,
LIBDAX_MSGS_PRIO_ZERO, msg, 0, 0);
}
return ret; return ret;
early_failure:; early_failure:;
return 0; return 0;