From 249f10dbaf1068209eeaf10f052bf80c69f99390 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 19 Sep 2006 14:10:27 +0000 Subject: [PATCH] Added error message in case of failed eject --- trunk/cdrskin/cdrskin.c | 11 ++++++++--- trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/trunk/cdrskin/cdrskin.c b/trunk/cdrskin/cdrskin.c index 4d5201f5..3ecb0c13 100644 --- a/trunk/cdrskin/cdrskin.c +++ b/trunk/cdrskin/cdrskin.c @@ -3669,10 +3669,15 @@ int Cdrskin_eject(struct CdrskiN *skin, int flag) if(!skin->do_eject) return(1); - if(Cdrskin_grab_drive(skin,2)>0) + if(Cdrskin_grab_drive(skin,2)>0) { Cdrskin_release_drive(skin,1); - if(skin->verbosity>=Cdrskin_verbose_debuG) - ClN(fprintf(stderr,"cdrskin_debug: supposing drive eject to have worked\n")); + if(skin->verbosity>=Cdrskin_verbose_debuG) + ClN(fprintf(stderr, + "cdrskin_debug: supposing drive eject to have worked\n")); + } else { + fprintf(stderr,"cdrskin: SORRY : Failed to finally eject tray.\n"); + return(0); + } return(1); #else /* Cdrskin_burn_drive_eject_brokeN */ diff --git a/trunk/cdrskin/cdrskin_timestamp.h b/trunk/cdrskin/cdrskin_timestamp.h index d5d6ef60..ee447550 100644 --- a/trunk/cdrskin/cdrskin_timestamp.h +++ b/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.09.19.124540" +#define Cdrskin_timestamP "2006.09.19.140716"