From a9affdc82a98c22bfb7d7b495478cf8bc1753b47 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 31 Aug 2014 11:56:46 +0000 Subject: [PATCH] Reduced number of GET CONFIGURATION transactions --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/drive.c | 2 ++ libburn/mmc.c | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 5640274..8e49c75 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2014.08.14.085850" +#define Cdrskin_timestamP "2014.08.31.110308" diff --git a/libburn/drive.c b/libburn/drive.c index 16281ef..5edb26d 100644 --- a/libburn/drive.c +++ b/libburn/drive.c @@ -77,6 +77,8 @@ int burn_setup_drive(struct burn_drive *d, char *fname) d->released = 1; d->stdio_fd = -1; d->status = BURN_DISC_UNREADY; + d->erasable = 0; + d->current_profile = -1; d->do_stream_recording = 0; d->stream_recording_start= 0; d->role_5_nwa = 0; diff --git a/libburn/mmc.c b/libburn/mmc.c index d780ff0..d1f0029 100644 --- a/libburn/mmc.c +++ b/libburn/mmc.c @@ -3240,6 +3240,9 @@ void mmc_get_configuration(struct burn_drive *d) int alloc_len = 8, ret; char *msg = NULL; + if (d->current_profile > 0 && d->current_profile < 0xffff) + goto ex; + mmc_start_if_needed(d, 1); if (mmc_function_spy(d, "mmc_get_configuration") <= 0) goto ex;