Browse Source

DEBUG message with burn_drive_cancel, FAILURE with premature end-of-input

1.0.2
Thomas Schmitt 10 years ago
parent
commit
043d9a82d8
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 5
      libburn/drive.c
  3. 7
      libburn/sector.c

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2011.02.14.085951"
#define Cdrskin_timestamP "2011.02.18.165542"

5
libburn/drive.c

@ -870,6 +870,11 @@ void burn_drive_cancel(struct burn_drive *d)
/* ts B00225 : these mutexes are unnecessary because "= 1" is atomar.
pthread_mutex_lock(&d->access_lock);
*/
if (!d->cancel) {
libdax_msgs_submit(libdax_messenger, -1, 0x00000002,
LIBDAX_MSGS_SEV_DEBUG, LIBDAX_MSGS_PRIO_ZERO,
"burn_drive_cancel() was called", 0, 0);
}
d->cancel = 1;
/*
pthread_mutex_unlock(&d->access_lock);

7
libburn/sector.c

@ -183,7 +183,14 @@ static void get_bytes(struct burn_track *track, int count, unsigned char *data)
if (shortage >= count)
track->track_data_done = 1;
if (track->end_on_premature_eoi && !track->open_ended) {
char msg[80];
/* Memorize that premature end of input happened */
sprintf(msg,
"Premature end of input encountered. Missing: %d bytes",
shortage);
libdax_msgs_submit(libdax_messenger, -1, 0x00020180,
LIBDAX_MSGS_SEV_FAILURE, LIBDAX_MSGS_PRIO_HIGH,
msg, 0,0);
track->end_on_premature_eoi = 2;
}
if (track->open_ended || track->end_on_premature_eoi)

Loading…
Cancel
Save