From 9bad2c93624ebc4097700f7dd12db66e8e4b8bdc Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 6 Sep 2007 09:44:34 +0000 Subject: [PATCH] Added forgotten handling of pseudo-drives in burn_drive_grab() --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 2a40bd4c..5bd325ff 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.09.05.195248" +#define Cdrskin_timestamP "2007.09.06.094402" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index 94cc2693..f2d47dca 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/libburn/drive.c @@ -246,6 +246,16 @@ int burn_drive_grab(struct burn_drive *d, int le) burn_print(1, "can't grab - already grabbed\n"); return 0; } + if(d->drive_role != 1) { + d->released = 0; + if(d->drive_role == 2) + d->status = BURN_DISC_BLANK; + else + d->status = BURN_DISC_EMPTY; + d->busy = BURN_DRIVE_IDLE; + return 1; + } + d->status = BURN_DISC_UNREADY; errcode = d->grab(d);