From c6407f66c2d30d5e50bf93276d1b1b59a6cf6e08 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 28 Aug 2009 11:40:56 +0000 Subject: [PATCH] Small correction with reporting profile "Remoovable disk" --- xorriso/xorriso_timestamp.h | 2 +- xorriso/xorrisoburn.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 4a440c7f..fc6dc0d8 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2009.08.28.101716" +#define Xorriso_timestamP "2009.08.28.112825" diff --git a/xorriso/xorrisoburn.c b/xorriso/xorrisoburn.c index 78670843..06168f59 100644 --- a/xorriso/xorrisoburn.c +++ b/xorriso/xorrisoburn.c @@ -5203,8 +5203,11 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag) if(flag & 32) return(1); - sprintf(respt, "Media current: "); ret= burn_disc_get_profile(drive, &profile_no, profile_name); + s= isoburn_disc_get_status(drive); + if(profile_no == 0x0002 && s == BURN_DISC_EMPTY) + profile_no= 0; + sprintf(respt, "Media current: "); if (profile_no > 0 && ret > 0) { if (profile_name[0]) sprintf(respt+strlen(respt), "%s", profile_name); @@ -5221,7 +5224,6 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag) Xorriso_toc_line(xorriso, flag & 8); sprintf(respt, "Media status : "); - s= isoburn_disc_get_status(drive); if (s == BURN_DISC_FULL) { sprintf(respt+strlen(respt), "is written , is closed\n"); } else if (s == BURN_DISC_APPENDABLE) {